Haskell installation

install Haskell with curl as explained in
haskellbook
See also

  1. stack new my-project
  2. cd my-project
  3. stack setup
  4. stack build
  5. stack exec my-project-exe
  6. stack ghc xx.hs

stack new 'project' creates
app/Main.hs
module Main where
import Lib
main :: IO ()
main = someFunc

and src/Lib.hs
module Lib
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"

After pushing to GitHub and subsequently, at another computer, pulling the following steps were needed to build the application:

  1. stack setup
  2. stack build
  3. stack exec gloss-bitmaps-exe

The name of the application is taken from the .cabal file and not the folder name.

linux-mint
lambda-calculus