Cabal woe
J. Reinders
jaro.reinders at gmail.com
Tue Jul 9 15:04:27 UTC 2024
One other alternative is to use a cabal script. You can simply add a multiline comment to your haskell files:
{- cabal:
build-depends: base, primitive, hashtables
-}
Then you can run the file with ‘cabal run T25064.hs’, or you can add a shebang at the top of the file and make it executable:
#!/usr/bin/env cabal
For more info see the cabal docs: https://cabal.readthedocs.io/en/latest/cabal-commands.html#cabal-run
Cheers,
Jaro
More information about the ghc-devs
mailing list