
9 Jul
2024
9 Jul
'24
11:04 a.m.
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