mikeizbicki / HLearn

Homomorphic machine learning
Other
1.63k stars 138 forks source link

markov build error #29

Closed wojtnar closed 10 years ago

wojtnar commented 10 years ago

wojtek@wojtek-desktop:~/src/HLearn/HLearn-markov$ cabal install HLearn-markov.cabal Resolving dependencies... Configuring HLearn-markov-1.0.0... Building HLearn-markov-1.0.0... Preprocessing library HLearn-markov-1.0.0... [1 of 1] Compiling HLearn.Models.Markov.MarkovChain ( src/HLearn/Models/Markov/MarkovChain.hs, dist/build/HLearn/Models/Markov/MarkovChain.o )

src/HLearn/Models/Markov/MarkovChain.hs:38:32: No instance for (Num [datatype]) arising from the 'deriving' clause of a data type declaration Possible fix: add an instance declaration for (Num [datatype]) or use a standalone 'deriving instance' declaration, so you can specify the instance context yourself When deriving the instance for (Monoid (ChainGang order datatype prob))

src/HLearn/Models/Markov/MarkovChain.hs:38:39: No instance for (Num [datatype]) arising from the 'deriving' clause of a data type declaration Possible fix: add an instance declaration for (Num [datatype]) or use a standalone 'deriving instance' declaration, so you can specify the instance context yourself When deriving the instance for (Group (ChainGang order datatype prob)) Failed to install HLearn-markov-1.0.0 cabal: Error: some packages failed to install: HLearn-markov-1.0.0 failed during the building phase. The exception was: ExitFailure 1

mikeizbicki commented 10 years ago

The markov package isn't on hackage, and it requires the versions of its dependencies on github. If you used cabal install to get them, then they'll be out of date.

In the dev branch, I've condensed everything into a single package. So if you git clone that branch, then everything should just work.

wojtnar commented 10 years ago

I used master branch from git. The dev branch built just fine. Thank you.