Christian Maeder | 18 Mar 16:17 2014
Picon

Mac CPP problem with ghc-clang-wrapper

Hi,

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 )

src/Text/XML/HaXml/Wrappers.hs:34:36:
     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’

src/Text/XML/HaXml/Wrappers.hs:34:36:
     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
(Continue reading)

Malcolm Wallace | 18 Mar 16:26 2014

Re: Mac CPP problem with ghc-clang-wrapper

Yes, this is a known problem.  I intend to put out a fresh version of HaXml soon to fix it.

Regards,
    Malcolm

On 18 Mar 2014, at 15:17, Christian Maeder wrote:

> Hi,
> 
> 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 )
> 
> src/Text/XML/HaXml/Wrappers.hs:34:36:
>    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’
(Continue reading)


Gmane