mikeizbicki / HLearn

Homomorphic machine learning
Other
1.62k stars 138 forks source link

hlearn-distributions depends on constrainkinds-1.1.0.0 which fails to install #69

Open ankitku opened 8 years ago

ankitku commented 8 years ago

Hi, I am on a mac using ghc 7.10. I am trying to install hlearn-distributions which depends on constrainkinds-1.1.0.0 which gives the following error on installation.

$ cabal install constraintkinds
Resolving dependencies...
Configuring ConstraintKinds-1.1.0.0...
Building ConstraintKinds-1.1.0.0...
Failed to install ConstraintKinds-1.1.0.0
Build log ( /Users/ankitku/.cabal/logs/ConstraintKinds-1.1.0.0.log ):
Configuring ConstraintKinds-1.1.0.0...
Building ConstraintKinds-1.1.0.0...
Preprocessing library ConstraintKinds-1.1.0.0...
[1 of 9] Compiling Control.ConstraintKinds.Partitionable ( src/Control/ConstraintKinds/Partitionable.hs, dist/build/Control/ConstraintKinds/Partitionable.o )
[2 of 9] Compiling Control.ConstraintKinds.Functor ( src/Control/ConstraintKinds/Functor.hs, dist/build/Control/ConstraintKinds/Functor.o )
[3 of 9] Compiling Control.ConstraintKinds.Pointed ( src/Control/ConstraintKinds/Pointed.hs, dist/build/Control/ConstraintKinds/Pointed.o )
[4 of 9] Compiling Control.ConstraintKinds.Foldable ( src/Control/ConstraintKinds/Foldable.hs, dist/build/Control/ConstraintKinds/Foldable.o )

src/Control/ConstraintKinds/Foldable.hs:58:10:
    Ambiguous occurrence ‘Foldable’
    It could refer to either ‘Control.ConstraintKinds.Foldable.Foldable’,
                             defined at src/Control/ConstraintKinds/Foldable.hs:26:1
                          or ‘P.Foldable’,
                             imported from ‘Prelude’ at src/Control/ConstraintKinds/Foldable.hs:20:1-36
                             (and originally defined in ‘Data.Foldable’)

src/Control/ConstraintKinds/Foldable.hs:76:10:
    Ambiguous occurrence ‘Foldable’
    It could refer to either ‘Control.ConstraintKinds.Foldable.Foldable’,
                             defined at src/Control/ConstraintKinds/Foldable.hs:26:1
                          or ‘P.Foldable’,
                             imported from ‘Prelude’ at src/Control/ConstraintKinds/Foldable.hs:20:1-36
                             (and originally defined in ‘Data.Foldable’)

src/Control/ConstraintKinds/Foldable.hs:90:10:
    Ambiguous occurrence ‘Foldable’
    It could refer to either ‘Control.ConstraintKinds.Foldable.Foldable’,
                             defined at src/Control/ConstraintKinds/Foldable.hs:26:1
                          or ‘P.Foldable’,
                             imported from ‘Prelude’ at src/Control/ConstraintKinds/Foldable.hs:20:1-36
                             (and originally defined in ‘Data.Foldable’)

src/Control/ConstraintKinds/Foldable.hs:105:10:
    Ambiguous occurrence ‘Foldable’
    It could refer to either ‘Control.ConstraintKinds.Foldable.Foldable’,
                             defined at src/Control/ConstraintKinds/Foldable.hs:26:1
                          or ‘P.Foldable’,
                             imported from ‘Prelude’ at src/Control/ConstraintKinds/Foldable.hs:20:1-36
                             (and originally defined in ‘Data.Foldable’)
cabal: Error: some packages failed to install:
ConstraintKinds-1.1.0.0 failed during the building phase. The exception was:
ExitFailure 1
mikeizbicki commented 8 years ago

HLearn-distributions has been depricated. There are no longer separate packages to install (and the latest versions are not on hackage). Instead, clone this repo. See #48 for more details.

ankitku commented 8 years ago

Thanks for your response. How do I need to modify code given here https://izbicki.me/blog/functors-and-monads-for-analyzing-data.html, to get it to work with HLearn ?

mikeizbicki commented 8 years ago

Hmm... that code's honestly pretty out of date. I don't think there's a quick solution. Sorry.

I made some major changes to the way HLearn deals with Functors/Monads, and never bothered to update the code. I'll try to get to this as soon as I can. But I'm living abroad right now, have a poor internet connection, and a lot of other responsibilities. So it'll probably be a while before I get to this. If I haven't fixed this within a week, please remind me to look at it again.

On Sat, Oct 24, 2015 at 12:32 AM, Ankit Kumar notifications@github.com wrote:

Thanks for your response. How do I need to modify code given here https://izbicki.me/blog/functors-and-monads-for-analyzing-data.html, to get it to work with HLearn ?

— Reply to this email directly or view it on GitHub https://github.com/mikeizbicki/HLearn/issues/69#issuecomment-150772689.

ankitku commented 8 years ago

Ok, will do

ankitku commented 8 years ago

Hi Mike, reminding you, as you said, to please upload some example usage of HLearn, Thanks :)

mikeizbicki commented 8 years ago

Thanks for the reminder! Unfortunately, I'm going to put this off a bit longer. GHC 8.0 is going to fix a lot of the warts that exist in the current code (and there's a LOT of warts!). So I'm going to wait until that happens (2-3 months?) to improve the documentation. I think that'll be a more effective use of my time, and it'll make it easier for people to actually use the library too.

GodefroyClair commented 8 years ago

Hi Mike, Thanks for your interesting page on functor/monad. Pretty hard to find examples dealing with other things than lists and trees... To explain how monad can be applied to stat distribution is very insightfull ! I know GHC 8 has only been released recently but if you still plan on updating the page on this topic, I would be very interested too !

mikeizbicki commented 8 years ago

@GodefroyClair This is still on the todo list, but I can't make any promises on a timeline.