Cabal

Updated: 17 August 2026

Start a new Haskell project

cabal update
cabal init --interactive

Build

cabal build

Run directly from cabal

cabal run my-cli-tool -- --help
cabal run my-cli-tool -- --hello World

Install a binary to ~/.cabal/bin

cabal install

GHC

Updated: 17 August 2026

Start a REPL

ghci

runghc interprets a source file instead of compiling it and does not create build artifacts

runghc hello.hs