Creating a new projectBasics
With cabal-install
-
Install/upgrade to the most recent
cabal-installversion. If you don't already have thecabalexecutable (thecabal-installpackage), install it from your distributions package manager or via The Haskell Platform. To upgrade:cabal update cabal install Cabal cabal-installMake sure the new
cabalexecutable is on your$PATH., update symlink if necessary. -
Create a new project:
mkdir myproject && cd myproject cabal init -
Install
ghcidand make sure its on your$PATH:cabal v2-install ghcid -
Build your project:
cabal v2-build
With Stack
-
Install/upgrade to the most recent Stack version, follow the docs here. To upgrade:
stack upgrade -
Create a new project directory:
stack --resolver=lts-12.16 new myproject cd myproject -
Build your project:
stack build
With Nix
TODO