Mac CPP problem with ghc-clang-wrapper

Christian Maeder Christian.Maeder at
Tue Mar 18 15:17:36 UTC 2014


under mavericks using the ghc-clang-wrapper (ghc-7.6) or using 
ghc-7.8.20140130 I can no longer install the HaXml package.

The source line:
    putStrLn $ "part of HaXml-"++show MAJOR.MINOR

seems to put spaces around the decimal point between MAJOR and MINOR and 
fails as shown below.

Is this already a known problem?

Cheers Christian

[14 of 42] Compiling Text.XML.HaXml.Wrappers ( 
src/Text/XML/HaXml/Wrappers.hs, dist/build/Text/XML/HaXml/Wrappers.o )

     Couldn't match type ‛[Char]’ with ‛b0 -> c0’
     Expected type: b0 -> c0
       Actual type: String
     Possible cause: ‛show’ is applied to too many arguments
     In the first argument of ‛(.)’, namely ‛show 1’
     In the second argument of ‛(++)’, namely ‛show 1 . 24’

     Couldn't match expected type ‛[Char]’ with actual type ‛a0 -> c0’
     In the second argument of ‛(++)’, namely ‛show 1 . 24’
     In the second argument of ‛($)’, namely
       ‛"part of HaXml-" ++ show 1 . 24’
     In a stmt of a 'do' block:
       putStrLn $ "part of HaXml-" ++ show 1 . 24
Failed to install HaXml-1.24

More information about the Glasgow-haskell-users mailing list