> The LANGUAGE: CPP pragma doesn't appear to get passed on to ghc, though
> it does appear to work with Hugs.

Pragmas should be interpreted by the compiler, not Cabal, and the
LANGUAGE pragma is not yet supported by GHC.

Hugs is treated differently because the source file must be preprocessed
before Hugs sees it.

The following should work with GHC 6.2 and 6.4, and Hugs Mar2005:

        {-# OPTIONS -cpp #-}
        {-# LANGUAGE CPP #-}

though OPTIONS is deprecated in favour of OPTIONS_GHC in 6.4.
(Indeed just the first line is enough for both GHC and Hugs.)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to