formulahendry / formulahendry/vscode-code-runner

This is to improve the haskell execution

Open
#1,204 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- VS Code Version: 1.96.2 (system setup)
- Commit fabdb6a30b4%7ga7abaOf2aOdßb399473380f
- Date (2 wks ago)
- Electron: 32.2.6
- ElectronBuildld: 10629634
- Chromium: 128.0.6613.186
- Node.js: 20.18.1
- vg: 12.8374.38-electron.O
- OS Version: Windows NTx64 10.0.26100
- Code Runner Version: 0.12.2

**Describe the bug**
The current Haskell command uses the interpreter `runghc` for execution, which is slower compared to using the compiler `ghc`. This update proposes changing the command to use `ghc` for faster execution.

**To Reproduce**
Steps to reproduce the behavior:

1. Use the current Haskell command with `runghc`.
2. Observe the execution time.
3. Update the command to use `ghc` as proposed.
4. Observe the reduced execution time.

**Actual behavior**
The Haskell scripts execute slower using the interpreter `runghc`.

**Expected behavior**
The Haskell scripts should execute faster using the compiler `ghc`.

**Proposed Command:**
```json
"haskell": "ghc -outputdir ./build -o \"$dir$fileNameWithoutExt\" \"$fileName\" && if ($?) { & \"$dir$fileNameWithoutExt\" }"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.