Ok, it looked good, but then I had to install first the hslogger. Here I
found the same problem, but I had now the scheme, so I began to change.

This it worked fine for configure, but when I try to build, I get:

[6 of 6] Compiling System.Log.Logger ( src/System/Log/Logger.hs,
dist\build/System/Log/Logger.o )

src/System/Log/Logger.hs:348:22:
    Illegal signature in pattern: String
        Use -XPatternSignatures to permit it

I was thinking that by adding PatternSignatures to the extensions would do
the job, but then I get:

Setup.hs: hslogger.cabal:28: Parse of field 'extensions' failed

Now it looks that we have in the data type Extension from the module
Distribution.Extension no data constructor for this kind of extension
(PatternSignatures). The only thing with patterns is PatternGuards.

I tried also to reformulate a little bit that offending line 348 - there is
something like:

case Map.lookup x lt of
   Left (_::String) -> ...

But beeing very late, I gave up after a few tries...

Nicu


> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag von 
> Thomas Schilling
> Gesendet: Montag, 26. November 2007 21:42
> An: haskell-cafe@haskell.org
> Betreff: Re: [Haskell-cafe] Building MissingH on Windows
> 
> 
> On Mon, 2007-11-26 at 21:24 +0100, [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> > I'm trying to build MissingH (0.18.6) on Windows, but it looks like 
> > (probably because of changes in Cabal) the Setup.hs is broken. Im 
> > using GHC 6.8.1. Following message:
> > 
> > $ runhaskell Setup.hs configure
> > 
> > Setup.hs:19:35:
> >     Couldn't match expected type `(Either
> >                                      GenericPackageDescription 
> > PackageDescription,
> >                                    HookedBuildInfo)'
> >            against inferred type `PackageDescription'
> >     In the first argument of `(confHook defaultUserHooks)', namely
> >         `mydescrip'
> >     In the expression:
> >         let
> >           mydescrip = case os of
> >                         "mingw32" -> ...
> >                         _ -> ...
> >         in (confHook defaultUserHooks) mydescrip flags
> >     In the definition of `customConfHook':
> >         customConfHook descrip flags
> >                          = let mydescrip = ...
> >                            in (confHook defaultUserHooks) mydescrip 
> > flags
> > 
> > I'm new to Cabal and I couldn't see a fast way to fix it.
> > 
> > Thanks,
> > Nicu
> 
> Try replacing the original files with the attached files.
> 

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to