[Haskell-cafe] make "cabal repl" run a custom preprocessor before loading

Simon Hengel sol at typeful.net
Thu May 15 12:02:01 UTC 2014


Hi,

> I'm wondering how to run a custom preprocessor with "cabal repl"?

You can try putting

    {-# OPTIONS_GHC -F -pgmF ... #-}

at the top of your source file.

That works fine for me with e.g. [1].

Cheers,
Simon

[1] https://github.com/sol/hspec-example/blob/master/test/Spec.hs


More information about the Haskell-Cafe mailing list