Please move to Haskell Runner 2
Markerplace for Haskell Runner 2
A simple extension to run Haskell.
You need to (at least) install ghc
. For the extension to be fully functional, you need to install cabal
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 using
stack repl
orcabal
make sure they're arguments for stack or cabal!
Arguments passed to ghc
Reload Haskell file to current GHCi terminal.
To use stack runghc
: Set ghciInterpreter
to Stack/Cabal
and haskellTool
to Stack
Otherwise, runhaskell
is called for the current file.
View source and report issues on Github