[Haskell-cafe] extension to filter with external program (was: Current status of Mavericks CPP)

Mikhail Glushenkov the.dead.shall.rise at gmail.com
Wed Apr 16 12:18:01 UTC 2014


Hi,

On 16 April 2014 14:11, Mikhail Glushenkov
<the.dead.shall.rise at gmail.com> wrote:
>
> Use custom preprocessor support in Cabal or 'ghc -cpp -pgmP
> /path/to/custom_cpp' .

Correction: A better method is to use '-F -pgmF /path/to/custom_cpp' [1].
Together with the OPTIONS_GHC pragma this gives you exactly what you requested.

[1] http://www.haskell.org/ghc/docs/7.0.3/html/users_guide/options-phases.html#pre-processor


More information about the Haskell-Cafe mailing list