Get Programming with Haskell
- Expose the module to be run in
gpwh.cabal
, for example:
exposed-modules: Unit1.Lesson01.Code1_1
- Import the module to be run in
app/Main.hs
and call the module'smain
function. Example:
module Main where
import Unit4.Lesson21.Code21_9
main :: IO ()
main = do
main21_9
- Run usign
Stack
:
stack build --exec gpwh