Haskell

From Organic Design wiki
Revision as of 21:48, 5 March 2021 by Saul (talk | contribs) (Created page with notes on how to get started with Haskell.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Haskell is a functional programming langauge used in Cardano.

Getting Started

Install the Haskell platform with:

sudo apt-get install haskell-platform

Then run the interpreter via:

ghci

Quitting the Haskell interpreter is the same as vim: :q or :quit.


You can write Haskell in .hs files then compile using ghc like so:

ghc -o hello hello.hs

And then you can run via the executable file ./hello.

See Also