[C2hs] Can't Install on Windows

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Jul 5 06:26:01 EDT 2006


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



More information about the C2hs mailing list