Skip to content

matthboers/has-go

 
 

Repository files navigation

Haskell Runner

GitHub Visual Studio Marketplace Version

A simple extension to run Haskell.

Requirements

You need to install ghc 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.

Source

View source and report issues on Github

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%