Haskell Run allows you to run Haskell programs with a single click or shortcut, just like the Python runner in VS Code. No more manually compiling and executing files—simply press a button and see your output instantly in the terminal!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
While working with Haskell, students and developers often face challenges with manual compilation and execution of functions. Haskell Run was created to simplify this process, allowing users to:
Run Haskell scripts effortlessly with a single click.
Execute individual functions without needing to manually type them in the terminal.
Improve workflow efficiency by integrating execution seamlessly within VS Code.
Keyboard Shortcuts
Command
Windows/Linux
macOS
Run Haskell File
Ctrl+Alt+R
Cmd+Alt+R
Run Selected Function
Ctrl+Alt+F
Cmd+Alt+F
Restart REPL
Ctrl+Alt+K
Cmd+Alt+K
Clear REPL
Ctrl+Alt+L
Cmd+Alt+L
Code Snippets
Prefix
Description
hmain
Create a Haskell main function
hprop
Create a QuickCheck property
hdata
Create a Haskell data type
hclass
Create a Haskell type class
Configuration
The following settings are available:
haskellRun.defaultRunner: Choose between 'runghc', 'stack runghc', or 'cabal run'
haskellRun.timeout: Set timeout for long-running scripts (default: 30000ms)