Another CPP gotcha for the manual
Mark Lentczner
mark.lentczner at gmail.com
Sun Nov 3 23:01:32 UTC 2013
This does not appear to be the case, at least any more. The way GHC invokes
gcc for c pre-processing only removes /*…*/ style comments, not the later
// style:
module Main where
(//) :: Double -> Double -> Double
a // b = a / b / b
main = print $ 1 // 2
works:
& runhaskell -cpp CppTest2.hs
0.25
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20131103/341f730c/attachment.html>
More information about the ghc-devs
mailing list