diff --git a/hie.yaml b/hie.yaml index e86fd5b..a1e2150 100644 --- a/hie.yaml +++ b/hie.yaml @@ -1 +1 @@ -cradle: {stack: {component: "hello:test:check" }} \ No newline at end of file +cradle: {stack: {component: "hello:exe:hello" }} diff --git a/src/HelloMain.hs b/src/HelloMain.hs index e4df5f8..e9ccc7b 100644 --- a/src/HelloMain.hs +++ b/src/HelloMain.hs @@ -1,10 +1,19 @@ {-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module Main where import Core.Program +version :: Version +version = $(fromPackage) + main :: IO () -main = execute $ do +main = do + context <- configure version None blank + executeWith context program + +program :: Program None () +program = do write "Hello World" diff --git a/stack.yaml b/stack.yaml index 7c1741b..4a8edf3 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,7 +1 @@ -resolver: lts-14.22 - -extra-deps: - - core-text-0.2.3.3 - - core-data-0.2.1.5 - - core-program-0.2.4.2 - +resolver: lts-15.0