[MacPorts] #15815: c2hs-0.14.5_1 fails to build - Setup.hs: Couldn't match expected type `()' against inferred type `ExitCode'
#15815: c2hs-0.14.5_1 fails to build - Setup.hs: Couldn't match expected type `()' against inferred type `ExitCode' --------------------------------+------------------------------------------- Reporter: captsolo@gmail.com | Owner: macports-tickets@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
#15815: c2hs-0.14.5_1 fails to build - Setup.hs: Couldn't match expected type `()' against inferred type `ExitCode' ---------------------------------+------------------------------------------ Reporter: captsolo@gmail.com | Owner: gwright@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: c2hs ---------------------------------+------------------------------------------ Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => gwright@macports.org Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15815#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15815: c2hs-0.14.5_1 fails to build - Setup.hs: Couldn't match expected type `()' against inferred type `ExitCode' ---------------------------------+------------------------------------------ Reporter: captsolo@… | Owner: gwright@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: c2hs Port: | ---------------------------------+------------------------------------------ Changes (by gwright@…): * status: new => closed * resolution: => fixed Comment: I just verified that the previously checked in update to version 0.15.1 fixed this. Closing. -- Ticket URL: <http://trac.macports.org/ticket/15815#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts