pa-ba / compdata

Haskell library implementing "Data Types a la Carte"
http://hackage.haskell.org/package/compdata
Other
89 stars 27 forks source link

cabal install compdata fails #2

Closed anakreontas closed 8 years ago

anakreontas commented 9 years ago

System information:

cabal --version cabal-install version 1.16.0.2 using version 1.16.0 of the Cabal library

ghc --version The Glorious Glasgow Haskell Compilation System, version 7.6.3

3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

cabal install compdata produces the following error: abal install compdata Resolving dependencies... Configuring compdata-0.8... Building compdata-0.8... ...... [19 of 65] Compiling Data.Comp.Ops ( src/Data/Comp/Ops.hs, dist/build/Data/Comp/Ops.o )

src/Data/Comp/Ops.hs:88:55: parse error on input `where' Failed to install compdata-0.8

pa-ba commented 9 years ago

From version 0.8 on compdata uses closed type families, which are only implemented in GHC 7.8. You either have to upgrade to that version of GHC or use compdata version 0.7.0.2. I have just updated the dependency constraints for version 0.8 of compdata such that Cabal will not select this version unless you have GHC 7.8. Please do a 'cabal update' and try to install compdata again afterwards. Cabal should select version 0.7.0.2 as the latest compatible version.