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

Haskell Runner 2

Malcolm Law

|
747 installs
| (0) | Free
Shortcut for GHCi and Stack
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Haskell Runner 2

Successor of the original Haskell Runner.

Features

A simple extension to run Haskell:

  • Load Haskell file/project to repl (GHCi)
  • Run stack build/test/run inside a stack project
  • Send selected Haskell code to GHCi (ctrl+alt+right)

Requirements

Required: ghc and stack.

Extension Settings

The following configurations are available:

  • runner2.ghciPath: path for GHCi (default ghci)
  • runner2.stackPath: path for stack executable (default stack)
  • runner2.replTool: by default, it use ghci in single file and use stack repl in stack project. This can be overridden by choosing other options (ghci for ghci only, and stack for stack repl only)
  • runner2.stackRun: show "Stack Run" button, reload required (default false)

Release Notes

Please refer to ChangeLog.

Issues

Please report issues on Github Issues.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft