install Haskell with curl as explained in
haskellbook
See also
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:
The name of the application is taken from the .cabal file and not the folder name.