-
Notifications
You must be signed in to change notification settings - Fork 1
1. Setup
Anurudh Peduri edited this page Oct 17, 2020
·
5 revisions
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 is the standard compiler for Haskell.
Basic compiling example: ghc -o a.out -Wall <file.hs>
(notice the similarity to gcc
)
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.
GHCi is the interactive environment for GHC.
Once installed, you can fire up the interactive session using ghci
I haven't tried these out, but they could be useful to others: