Bugs item #2939531, was opened at 2010-01-25 16:42
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=536845&aid=2939531&group_id=73133
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: yairchu ()
Assigned to: Nobody/Anonymous (nobody)
Summary: cabal install wxcore fails / Setup.hs type error
Initial Comment:
when doing cabal install I get the errors below:
Setup.hs:15:57:
Couldn't match expected type `GenericPackageDescription'
against inferred type `Either
GenericPackageDescription
PackageDescription'
Expected type: (GenericPackageDescription, HookedBuildInfo)
Inferred type: (Either
GenericPackageDescription PackageDescription,
HookedBuildInfo)
In the `confHook' field of a record
In the first argument of `defaultMainWithHooks', namely
`simpleUserHooks {confHook = myConfHook}'
Setup.hs:51:37:
Couldn't match expected type `GenericPackageDescription'
against inferred type `Either
GenericPackageDescription
PackageDescription'
In the expression: pkg0
In the second argument of `confHook', namely `(pkg0, pbi)'
In a stmt of a 'do' expression:
lbi <- confHook simpleUserHooks (pkg0, pbi) flags
the following patch seemed to solve it:
15c15,18
< main = defaultMainWithHooks simpleUserHooks { confHook = myConfHook }
---
> main =
> defaultMainWithHooks simpleUserHooks { confHook = f }
> where
> f (x, y) = myConfHook (Left x, y)
51c54,55
< lbi <- confHook simpleUserHooks (pkg0, pbi) flags
---
> let Left t = pkg0
> lbi <- confHook simpleUserHooks (t, pbi) flags
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=536845&aid=2939531&group_id=73133
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
wxhaskell-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel