Can't Install on Windows

I have not been able to get C2hs to install on windows. After decompressing the archive I run cygwin and cd to the directory and then run $ runhaskell Setup.hs configure Setup.hs:11:57: Couldn't match expected type `Distribution.PackageDescription.PackageDescription' against inferred type `LocalBuildInfo' Probable cause: `addWrapperAndLib' is applied to too many arguments In the `postInst' field of a record In the first argument of `defaultMainWithHooks', namely `defaultUserHooks {postInst = addWrapperAndLib}' This is c2hs-0.1.4.5. The same thing happens under Msys (mingw) and under a Dos shell. Also the error occurs using both GHC-6.4.2 and GHC-6.5. Looks like I'll be linking to my C library by hand. -- View this message in context: http://www.nabble.com/Can%27t-Install-on-Windows-tf1876043.html#a5129170 Sent from the Haskell - C2hs forum at Nabble.com.

On Fri, 2006-06-30 at 19:04 -0700, SevenThunders wrote:
I have not been able to get C2hs to install on windows. After decompressing the archive I run cygwin and cd to the directory and then run
$ runhaskell Setup.hs configure
Setup.hs:11:57: Couldn't match expected type `Distribution.PackageDescription.PackageDescription' against inferred type `LocalBuildInfo' Probable cause: `addWrapperAndLib' is applied to too many arguments In the `postInst' field of a record In the first argument of `defaultMainWithHooks', namely `defaultUserHooks {postInst = addWrapperAndLib}'
This is c2hs-0.1.4.5. The same thing happens under Msys (mingw) and under a Dos shell. Also the error occurs using both GHC-6.4.2 and GHC-6.5. Looks like I'll be linking to my C library by hand.
Yes this is due to changes in Cabal in later versions of GHC. Grab the Setup.hs from here: http://darcs.haskell.org/c2hs/Setup.hs to replace the one in the 0.14.5 tarball, then everything should work fine. We should do another release with this fix and others. Duncan
participants (2)
-
Duncan Coutts
-
SevenThunders