2010/4/20 Paulo Tanimoto <
ptan...@gmail.com>:
Hi!
I have following error when building happstack from darcs:
happstack % cabal install
Resolving dependencies...
Configuring happstack-0.4.3...
Preprocessing library happstack-0.4.3...
Preprocessing executables for happstack-0.4.3...
Building happstack-0.4.3...
src/Happstack/Server/HStringTemplate.hs:1:53:
Warning: -XPatternSignatures is deprecated: use
-XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables #-}
instead
[ 2 of 10] Compiling HSP.Google.Analytics (
src/HSP/Google/Analytics.hs, dist/build/HSP/Google/Analytics.o )
src/HSP/Google/Analytics.hs:50:71:
Couldn't match expected type `a -> b'
against inferred type `GenAttributeList m'
In the first argument of `map', namely `(asAttr hattrs)'
In the second argument of `(++)', namely `map (asAttr hattrs)'
In the second argument of `genElement', namely
`([] ++ map (asAttr hattrs))'
cabal: Error: some packages failed to install:
happstack-0.4.3 failed during the building phase. The exception was:
ExitFailure 1
Seems that new hsx (dated 19.04.2010) breaks all the things
To workaround it one could use constraint like:
cabal install --constraint=hsx==0.5.5
Please fix!
--
Thanks,
Sergey