Ticket #6023 (closed bug: invalid)
cpp symbol __GLASGOW_HASKELL__ doesn't reflect version number
Description
I've just installed ghc 7.4.1 and it seems to get the value of the GLASGOW_HASKELL variable wrong:
Load the program below in ghci and run main. I get "704" as output.
{-# OPTIONS_GHC -cpp #-}
module Main where
#if __GLASGOW_HASKELL__ == 704
main = putStrLn "704"
#else
main = putStrLn "something else"
#endif
Change History
Note: See
TracTickets for help on using
tickets.
