[Haskell-cafe] Build error with network/snap w/win7 haskell platform

Adam Turoff adam.turoff at gmail.com
Wed Nov 16 00:38:05 CET 2011

I'm trying to build snap-0.6 on win7/x64 with the current 64-bit
haskell platform.

I have the mingw compilers from the platform in $PATH, and I can get
the network and snap-server modules to build.  But snap-0.6 fails:

    [18 of 31] Compiling Snap.Snaplet.Internal.Types (
dist\build\Snap\Snaplet\Internal\Types.o )
    Loading package ghc-prim ... linking ... done.
    Loading package murmur-hash- ... linking ... done.
    Loading package parsec-3.1.2 ... linking ... done.
    Loading package network- ... linking ... ghc.exe: unable to
load package `network-'
    ghc.exe: C:\Users\aturoff\AppData\Roaming\cabal\network-\ghc-7.0.3\HSnetwork-
unknown symbol `_acceptNewSock'
    cabal.exe: Error: some packages failed to install:
    snap- failed during the building phase. The exception was:
    ExitFailure 1

Any ideas?  The platform comes with network-, but cabal insists
on upgrading it.  Is there some way to force cabal to use the version
that came with the platform instead?  Specifying network== as a
dependency just rebuilds it as a user package.


-- Adam

More information about the Haskell-Cafe mailing list