26 Jan 2013 14:47
aeson-0.6.1.0 deriveJSON error
<jims <at> stuttard.org>
2013-01-26 13:47:25 GMT
2013-01-26 13:47:25 GMT
ghc doesn't seem to be unifying deriveJSON (String->String)
parameter with id :: a -> a.
examples/TemplateHaskell.hs:22:14:
Couldn't match expected type `Data.Aeson.TH.Options'
with actual type `a0 -> a0'
In the first argument of `deriveJSON', namely `id'
In the expression: deriveJSON id ''Coord
ghc --make: /usr/hs/ghc/7.4.1/bin/ghc failure (return code=1)
ghc-7.4.1 x86_64
Centos-6
[jim <at> localhost aeson]$ ghc-pkg list
--package-conf=../cabal-dev/packages-7.4.1.conf
../cabal-dev/packages-7.4.1.conf
HTTP-4000.2.6
aeson-0.6.1.0
attoparsec-0.10.3.0
attoparsec-conduit-0.5.0.3
base-unicode-symbols-0.2.2.4
blaze-builder-0.3.1.0
blaze-builder-conduit-0.5.0.3
case-insensitive-0.4.0.4
conduit-0.5.6
dlist-0.5
hashable-1.2.0.5
http-types-0.7.3.0.1
lifted-base-0.2.0.2
monad-control-0.3.1.4
(Continue reading)
RSS Feed