Skip to content

1. Setup

Anurudh Peduri edited this page Oct 17, 2020 · 5 revisions

My Setup

I use VSCode with the Haskell plugin. It supports formatting and live analysis.

It does have some issues: The LSP takes up too much memory, so you'll need to restart it occasionally.

GHC

GHC is the standard compiler for Haskell.
Basic compiling example: ghc -o a.out -Wall <file.hs> (notice the similarity to gcc)

Linter

HLint is the standard lint tool for Haskell.
Once installed, you can invoke it using hlint <file>.hs

The linter shows very useful warnings and possible rewrites to make the code cleaner and elegant.

REPL

GHCi is the interactive environment for GHC.
Once installed, you can fire up the interactive session using ghci

Other Suggestions

I haven't tried these out, but they could be useful to others:

Clone this wiki locally