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
_______________________________________________
ghc-devs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to