Skip to content

Instantly share code, notes, and snippets.

@seanhess
Created October 29, 2011 16:20
Show Gist options
  • Save seanhess/1324724 to your computer and use it in GitHub Desktop.
Save seanhess/1324724 to your computer and use it in GitHub Desktop.
installing hack2-handler-snap-server
squid:web seanhess$ cabal update
Downloading the latest package list from hackage.haskell.org
squid:web seanhess$ cabal install hack2-handler-snap-server
Resolving dependencies...
Configuring hack2-handler-snap-server-2011.10.12...
Preprocessing library hack2-handler-snap-server-2011.10.12...
Building hack2-handler-snap-server-2011.10.12...
[1 of 1] Compiling Hack2.Handler.SnapServer ( src/Hack2/Handler/SnapServer.hs, dist/build/Hack2/Handler/SnapServer.o )
src/Hack2/Handler/SnapServer.hs:72:55:
Couldn't match expected type `Snap.Headers'
with actual type `Data.Map.Map k0 a0'
Expected type: Snap.Headers -> a1
Actual type: Data.Map.Map k0 a0 -> [(k0, a0)]
In the second argument of `(.)', namely `toAscList'
In the first argument of `(.)', namely
`request . SnapInternal.rqHeaders . toAscList'
src/Hack2/Handler/SnapServer.hs:104:112:
Couldn't match expected type `Snap.Headers'
with actual type `Data.Map.Map
(CaseInsensitive.CI ByteString) (m0 ByteString)'
Expected type: [(CaseInsensitive.CI ByteString, m0 ByteString)]
-> Snap.Headers
Actual type: [(CaseInsensitive.CI ByteString, m0 ByteString)]
-> Data.Map.Map (CaseInsensitive.CI ByteString) (m0 ByteString)
In the second argument of `(.)', namely `fromAscList'
In the `SnapInternal.rspHeaders' field of a record
cabal: Error: some packages failed to install:
hack2-handler-snap-server-2011.10.12 failed during the building phase. The
exception was:
ExitFailure 1
squid:web seanhess$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment