[Haskell-cafe] getting haddock to cooperate with cpp

Evan Laforge qdunkan at gmail.com
Sat Jul 13 19:22:08 CEST 2013

> If you have an .hs file with {-# LANGUAGE CPP #-}, it is a compiler's
> job to detect it and run the preprocessor.
> But haddock uses the GHC API (which knows how to do the above), so there
> shouldn't be issues with that.

Hey, you're right!  Haddock *does* understand LANGUAGE CPP.  Ok, that
makes my question moot, sorry for the confusion!

I think I was misled because my compile was failing for unrelated
reasons that looked like CPP wasn't happening.

More information about the Haskell-Cafe mailing list