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 _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs