Skip to content

Instantly share code, notes, and snippets.

@battermann
Last active December 23, 2019 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save battermann/6c30f8d1bdec0844b2e025a799b12e7b to your computer and use it in GitHub Desktop.
Save battermann/6c30f8d1bdec0844b2e025a799b12e7b to your computer and use it in GitHub Desktop.

Haskell Getting Started

Install Haskell Platform

VS Code

Create A Project

Create a new project by typing:

stack new hello-haskell-world simple

then to get the appropriate GHC (this takes some time):

cd hello-haskell-world
stack setup

Build And Run

Build:

stack build

Run:

stack exec hello-haskell-world

Interactive REPL

Start the REPL from your project folder:

stack ghci

Reload:

:reload

Run the main method:

main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment