AW: [Haskell-cafe] Building MissingH on Windows - now problems with
nionita at lycos.de
Tue Nov 27 18:18:44 EST 2007
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,
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
case Map.lookup x lt of
Left (_::String) -> ...
But beeing very late, I gave up after a few tries...
> -----Ursprüngliche Nachricht-----
> Von: haskell-cafe-bounces at haskell.org
> [mailto:haskell-cafe-bounces at haskell.org] Im Auftrag von
> Thomas Schilling
> Gesendet: Montag, 26. November 2007 21:42
> An: haskell-cafe at haskell.org
> Betreff: Re: [Haskell-cafe] Building MissingH on Windows
> On Mon, 2007-11-26 at 21:24 +0100, nionita at lycos.de 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.
More information about the Haskell-Cafe