[MacPorts] #15815: c2hs-0.14.5_1 fails to build - Setup.hs: Couldn't match expected type `()' against inferred type `ExitCode'
MacPorts
noreply at macports.org
Wed Jul 2 01:48:45 PDT 2008
#15815: c2hs-0.14.5_1 fails to build - Setup.hs: Couldn't match expected type `()'
against inferred type `ExitCode'
--------------------------------+-------------------------------------------
Reporter: captsolo at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: c2hs |
--------------------------------+-------------------------------------------
Build fails during configuring (on Mac OS X Leopard (10.5.4), MacPorts
1.6.0):
{{{
--> Configuring c2hs
Error: Target org.macports.configure returned: shell command "ghc -o
Setup Setup.hs -package Cabal" returned error 1
Command output:
Setup.hs:12:57:
Couldn't match expected type `()' against inferred type `ExitCode'
Expected type: Args
-> InstallFlags
-> PackageDescription
-> LocalBuildInfo
-> IO ()
Inferred type: Args
-> InstallFlags
-> PackageDescription
-> LocalBuildInfo
-> IO ExitCode
In the `postInst' field of a record
In the first argument of `defaultMainWithHooks', namely
`defaultUserHooks {postInst = addWrapperAndLib}'
Error: Status 1 encountered during processing.
}}}
Can be fixed by updating portfile to the last version of c2hs (diff
below):
{{{
5c5
< version 0.14.5
---
> version 0.15.1
23c23
< checksums md5 8e04c1dfffbd4d27776fc406f15d24e5
---
> checksums md5 69f99fba67419edd471b77efb0bd644f
27,30d26
< patchfiles patch-Setup.hs \
< patch-CLexer.hs \
< patch-CParser.hs
<
}}}
--
Ticket URL: <http://trac.macports.org/ticket/15815>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list