Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is to improve the haskell execution #1204

Open
VKrishna04 opened this issue Jan 7, 2025 · 0 comments
Open

This is to improve the haskell execution #1204

VKrishna04 opened this issue Jan 7, 2025 · 0 comments

Comments

@VKrishna04
Copy link

  • 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:

"haskell": "ghc -outputdir ./build -o \"$dir$fileNameWithoutExt\" \"$fileName\" && if ($?) { & \"$dir$fileNameWithoutExt\" }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant