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.
-- arch-tag: MissingH main description file Name: MissingH Version: 0.18.6 Cabal-Version: >= 1.2 License: GPL Maintainer: John Goerzen <[EMAIL PROTECTED]> Author: John Goerzen Copyright: Copyright (c) 2004-2007 John Goerzen license-file: COPYRIGHT extra-source-files: COPYING homepage: http://software.complete.org/missingh Category: Unclassified synopsis: Large utility library Description: MissingH is a library of all sorts of utility functions for Haskell programmers. It is written in pure Haskell and thus should be extremely portable and easy to use. Stability: Beta Library Hs-Source-Dirs: src Exposed-Modules: Data.String, System.IO.Utils, System.IO.Binary, Data.List.Utils, System.Daemon, Text.ParserCombinators.Parsec.Utils, Test.HUnit.Utils, Network.Email.Mailbox, Control.Concurrent.Thread.Utils, Network.Email.Sendmail, Data.CSV, System.Cmd.Utils, Data.Progress.Tracker, Data.Progress.Meter, Data.Quantity, Data.Map.Utils, System.Path, System.Path.NameManip, System.Path.WildMatch, System.Path.Glob, System.Time.Utils, System.Time.ParseDate, Network.Utils, Network.SocketServer, Data.Either.Utils, Data.Maybe.Utils, Data.Bits.Utils, Data.Hash.CRC32.Posix, Data.Hash.CRC32.GZip, Data.Hash.MD5, Data.Hash.MD5.Zord64_HARD, Data.Compression.Inflate, System.FileArchive.GZip, System.IO.HVFS, System.IO.HVFS.Combinators, System.IO.HVFS.InstanceHelpers, System.IO.HVFS.Utils, System.IO.HVIO, System.IO.StatCompat, System.IO.WindowsCompat, System.IO.PlafCompat, System.Posix.Consts, System.Debian, System.Debian.ControlParser, Data.MIME.Types, System.Console.GetOpt.Utils Extensions: ExistentialQuantification, OverlappingInstances, UndecidableInstances, CPP Build-Depends: network, parsec, base, haskell98, mtl, HUnit, regex-compat, QuickCheck, filepath, hslogger if !os(windows) Build-Depends: unix GHC-Options: -O2 Executable runtests Buildable: False Main-Is: runtests.hs HS-Source-Dirs: testsrc, . Extensions: ExistentialQuantification, OverlappingInstances, UndecidableInstances, CPP
#!/usr/bin/env runhaskell module Main where import Distribution.Simple main :: IO () main = defaultMain
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe