Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ankitku opened this issue Oct 21, 2015 · 8 comments

Comments

@ankitku
Copy link

ankitku commented Oct 21, 2015

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
Copy link
Owner

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
Copy link
Author

ankitku commented Oct 24, 2015

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
Copy link
Owner

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 [email protected]
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
#69 (comment).

@ankitku
Copy link
Author

ankitku commented Oct 26, 2015

Ok, will do

@ankitku
Copy link
Author

ankitku commented Dec 12, 2015

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

@mikeizbicki
Copy link
Owner

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
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants