- Create your package sandbox:
cabal sandbox init
- All packages get installed in
.cabal-sandbox
directory as long as you runcabal
fromROOT
- All packages get installed in
- Create package:
cabal init
- Install dependency:
cabal install gloss==1.13.*
NOTE For other projects use stack
instead of cabal
.
- Run code:
cabal run
- Run
cabal clean
if you want to get rid of old compiled files from thedist
folder - Alternatively you can build the exe using
cabal build
and run it using./dist/build/haskell-pong/haskell-pong
cabal haddock --executables
stylish-haskell
- bad, not very opinionated- UPDATE use
hindent
instead- Install
stack
:curl -sSL https://get.haskellstack.org/ | sh
. There is some sort of weird bug if you useapt-get
on later debian distros. - Install
hindent
:stack install hindent
- If use
VS Code
installhindent-format
- Install