Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

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
You can’t perform that action at this time.