A simple extension to run Haskell.
You need to install ghc
and stack
.
- Press
command + shift + P
to:- Load GHCi(or Stack/Cabal repl) with current file:
Load GHCi
- Run current Haskell file:
Run Haskell File
- Stack / Cabal run:
Stack Run
(You can use theCabal
tool, but it's still called stack run OwO)
- Load GHCi(or Stack/Cabal repl) with current file:
Arguments that passed to stack run
(or passed to your program...)
For example:
"has-go.overrideGHCiArgs": "${current} Shiki.hs -XLambdaCase"
This config will load current file, the file Shiki.hs
to GHCi and enable extension -XLambdaCase
.
For
${current}
, it will load the current Haskell file to GHCi. If it is an empty string, ghci without any args will be started. If you are usingstack repl
orcabal
make sure they're arguments for stack or cabal!
Arguments passed to ghc
Reload Haskell file to current GHCi terminal.
View source and report issues on Github