Source Code from Get Programming with Haskell Book
Visual Studio Code plugin
brew update
brew install stack
Create new project and Build
stack new {project name} simple --resolver=lts-7.8
lst-7.8 does is it mean compile version you need to use
- Create project ->
stack new hello-world simple --resolver=lts-7.8
- Build ->
stack build
- Set up stack or setup GHC ->
stack setup
- Execute program ->
stack exec hello-world
- Run program ->
stack runghc Main.hs
- Interactive for GHC ->
stack ghci
- Exit interactive mode ->
:quit
Haskell platform