Hello I want to build and install some extralibs using Cabal. I have the Cabal-1.1.6.2 version installed. When I run the command $ runghc Setup.hs configure --ghc --user --prefix=$HOME it fails with the message Setup.hs:17:30: Couldn't match expected type `UserHooks' against inferred type `Maybe UserHooks' Expected type: Hook a Inferred type: PackageDescription -> LocalBuildInfo -> Maybe UserHooks -> BuildFlags -> IO () In the second argument of `($)', namely `buildHook defaultUserHooks' In the `buildHook' field of a record How can I fixe this bug ? Thanks B. Fotsing Talla
On 6/4/07, bft <bfotsing@gmail.com> wrote:
I want to build and install some extralibs using Cabal. I have the Cabal-1.1.6.2 version installed. When I run the command
Could you provide a link to the package which you are trying to install? AGL -- Adam Langley agl@imperialviolet.org http://www.imperialviolet.org 650-283-9641
They are available in the 'extra libraries' distribution on http://haskell.org/ghc/download_ghc_661.html * ghc-6.6.1-src-extralibs.tar.bz2 (1.8 MB). I tried the arrows package and it failed with that message. Thanks Bernard Fotsing Talla
FOTSING TALLA Bernard wrote:
They are available in the 'extra libraries' distribution on http://haskell.org/ghc/download_ghc_661.html * ghc-6.6.1-src-extralibs.tar.bz2 (1.8 MB). I tried the arrows package and it failed with that message.
The version of Cabal shipped with 6.6.1 unfortunately isn't compatible with some of those packages, so you have to either (a) get binary versions of the libraries, presumably from the same place you got GHC, or (b) upgrade Cabal. You can also get the sources for arrows from its darcs repository, http://darcs.haskell.org/packages/arrows. The current sources are compatible again with the Cabal library in GHC 6.6.1. Cheers, Simon
On Mon, Jun 04, 2007 at 08:53:41PM +0100, bft wrote:
I want to build and install some extralibs using Cabal. I have the Cabal-1.1.6.2 version installed. When I run the command $ runghc Setup.hs configure --ghc --user --prefix=$HOME it fails with the message Setup.hs:17:30: Couldn't match expected type `UserHooks' against inferred type `Maybe UserHooks' Expected type: Hook a Inferred type: PackageDescription -> LocalBuildInfo -> Maybe UserHooks -> BuildFlags -> IO () In the second argument of `($)', namely `buildHook defaultUserHooks' In the `buildHook' field of a record
How can I fixe this bug ?
Commenting out the type signature for add_ghc_options in Setup.hs should fix it. Thanks Ian
participants (5)
-
Adam Langley -
bft -
FOTSING TALLA Bernard -
Ian Lynagh -
Simon Marlow