Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Haskell RunnerNew to Visual Studio Code? Get it now.
Haskell Runner

Haskell Runner

Malcolm Law

|
7,736 installs
| (0) | Free
A simple extension to run haskell file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Haskell Runner

GitHub Visual Studio Marketplace Version

A simple extension to run Haskell.

Requirements

You need to (at least) install ghc. For the extension to be fully functional, you need to install cabal and stack.

Features

  • 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 the Cabal tool, but it's still called stack run OwO)

Configuartions

Stack Args

Arguments that passed to stack run (or passed to your program...)

Override GHCi Args

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 or cabal make sure they're arguments for stack or cabal!

GHC args

Arguments passed to ghc

Reuse Terminal

Reload Haskell file to current GHCi terminal.

Note for Run File

To use stack runghc: Set ghciInterpreter to Stack/Cabal and haskellTool to Stack

Otherwise, runhaskell is called for the current file.

Source

View source and report issues on Github

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft