Skip to content

Haskell Setting

Throstle Sage edited this page Jan 26, 2025 · 3 revisions

In most platforms, Haskell solutions are standalone executable programs. Therefore, using stack or cabal to set up a project can be quite inconvenient. The best approach is to use the cabal command to create a temporary environment. The details are as follows:

  1. Install Supported Packages:
    In your project folder, run the following command to install the necessary package:

    cabal install xxx --package-env .

    Replace xxx with the package name supported by the platform.

  2. Verify Installation:
    Ensure the package is installed correctly by checking the output of cabal list or similar tools.

Suggestion: Use the Haskell LSP Plugin

Clone this wiki locally