I’m receiving the following error when installing Snap for the first time. I’ve tried installing heist first but get the same error. I’m using Ubuntu 12.04 32bit desktop (brand new installation) and ghc 7.4.1.
Anyone else get this error? Solution?
Thanks.
[18 of 29] Compiling Snap.Snaplet.HeistNoClass ( src/Snap/Snaplet/HeistNoClass.hs, dist/build/Snap/Snaplet/HeistNoClass.o )
src/Snap/Snaplet/HeistNoClass.hs:195:32:
Couldn't match expected type `n0 (Either e'0 b0)'
with actual type `Text'
Expected type: String -> n0 (Either e'0 b0)
Actual type: String -> Text
In the first argument of `(.)', namely `T.pack'
In the first argument of `mapEitherT', namely
`(T.pack . intercalate "")'
cabal: Error: some packages failed to install:
sample1-0.1 depends on snap-0.10.0.1 which failed to install.
snap-0.10.0.1 failed during the building phase. The exception was:
ExitFailure 1
snaplet-sqlite-simple-0.4.0 depends on snap-0.10.0.1 which failed to install.
The dependecy of
errorsoneitheris specified aseither >= 3.0.1, andeitherisn’t listed as a build-dependency forsnap(since the used moduleControl.Monad.Trans.Eitheris re-exported fromControl.Error, that isn’t necessary, even thoughsnapdirectly uses code fromeither). Thus buildingsnappulls in the latest version ofeither.However, in
either-3.1, the type ofmapEitherTchanged. It used to bein
either-3.0.*, and now it isThe code was written for the old version.
You can constrain the version of
eitherto use,to build it.