Skip to content
Snippets Groups Projects
Mateusz Goślinowski's avatar
d9312c7f
History
Name Last commit Last update
.gitignore
LICENSE
README.md
index.mjs
package.json

haskell-loader

Webpack loader for .cabal projects. Allows you to specify a .cabal or .project file as an entry in Webpack projects.

Example:

{
  test: /\.(cabal|project)$/,
  use: 
    {
      loader: "@haskell-org/haskell-loader",
      options: {
        "install-ghc": "9.12.1",
        "install-cabal": "3.14.1.1",
        "system-tools": false, // don't use system tools since we're installing local ones
        "executable": "example"
      }
    }
},

You can follow an example setup here.