Haskell - hpaluch/hpaluch.github.io GitHub Wiki

Haskell Quick Start

How to quickly create and run Hello world in Haskell.

OS: openSUSE LEAP 15.4

Install these packages:

sudo zypper in cabal-install ghc-compiler

Create empty project using:

mkdir -p ~/projects/haskell/hello-cabal
cd ~/projects/haskell/hello-cabal
cabal init  -n

To build and run invoke:

cabal run

Resources

Very important - understanding IO (Monads) - functions that have side effect: