mikeizbicki / HLearn

Homomorphic machine learning
Other
1.63k stars 138 forks source link

Unable to install HLearn-algebra #2

Closed pavelm closed 11 years ago

pavelm commented 11 years ago

Getting the following errors from the cabal install:

[2 of 7] Compiling HLearn.Algebra.Structures.Modules ( src/HLearn/Algebra/Structures/Modules.hs, dist/build/HLearn/Algebra/Structures/Modules.o )

src/HLearn/Algebra/Structures/Modules.hs:94:5: Illegal tuple constraint (Num r, Ord a) (Use -XConstraintKinds to permit this) In the type synonym instance declaration for CK.FunctorConstraint' In the instance declaration forCK.Functor (FreeMod r)'

src/HLearn/Algebra/Structures/Modules.hs:98:5: Illegal tuple constraint (Num r, Ord a, Operator r a) (Use -XConstraintKinds to permit this) In the type synonym instance declaration for CK.FoldableConstraint' In the instance declaration forCK.Foldable (FreeMod r)' cabal: Error: some packages failed to install: HLearn-algebra-0.1.0.1 failed during the building phase. The exception was: ExitFailure 1

mikeizbicki commented 11 years ago

I'm on ghc 7.6.1, and it works for me. It looks like this error message should be easy to fix, just by adding

{-# LANGUAGE ConstraintKinds #-}

up at the top of the file. So I tried that and reuploaded to hackage. See if that works.