brew install haskell-stack
Upgrade to last version:
stack upgrade
To Install Stack For Windows
From the command line:
stack --version
From the command line:
- CD into the project directory:
cd $PROJECTS/leng-prog/exercises/example
- Run
stack build
. It should compile OK. - Run
stack ghci
. You should be able to execute thehelp
,hello
andobliqueShot
functions. - Run
stack test
. Tests should pass.
Click Open and select the example directory:
In the import window select import from external model, haskell stack
Hit create
In the Project SKD pull down select Haskell tool Stack
If it is not there select Add Stack executable and add it.
Hit create
It should open the project.
Now you should be able to Edit and add configurations like:
- Haskell Stack Repl
- Haskell Stack Test
To run the tests or the repl from inside Intellij
Try them !