Skip to content
Henryk Paluch edited this page Nov 3, 2022 · 1 revision

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:

Clone this wiki locally