[Haskell-cafe] Disable LINE Pragma handling in GHC

Henk-Jan van Tuyl hjgtuyl at chello.nl
Fri Sep 10 17:28:06 EDT 2010


On Fri, 10 Sep 2010 08:40:22 +0200, JP Moresmau <jpmoresmau at gmail.com>  
wrote:

> Can I tell GHC to just ignore these
> pragmas? I suppose even using GHC for building and something else
> (haskell-src-exts?) for code handling would leave us with compilation
> messages at the wrong place.
>
> Thanks,
>

Maybe you could try something like

#ifdef USE_LINE_PRAGMAS
{-# LINE 42 "Foo.lhs" #-}
#endif

Regards,
Henk-Jan van Tuyl


-- 
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--


More information about the Haskell-Cafe mailing list