[Haskell-beginners] cabal install glfw failing
Sumit Sahrawat, Maths & Computing, IIT (BHU)
sumit.sahrawat.apm13 at iitbhu.ac.in
Tue Jun 9 01:57:19 UTC 2015
It seems like the gflw package doesn't support ghc 7.10 yet. Try
downgrading to 7.8.4 and it should work.
On 8 June 2015 at 18:01, Martin Vlk <martin at vlkk.cz> wrote:
> Hi, I am trying to install the Euterpea library, which depends on glfw,
> but it is failing to install with a compilation failure.
>
> Could someone take a look at the error and tell me what might be wrong?
>
> Many Thanks
> Martin
>
> The Glorious Glasgow Haskell Compilation System, version 7.10.1
> cabal-install version 1.22.4.0
> using version 1.22.3.0 of the Cabal library
>
> $ cabal update
> $ cabal install glfw
>
> Resolving dependencies...
> Configuring GLFW-0.5.2.2...
> Failed to install GLFW-0.5.2.2
> Build log ( /home/martin/.cabal/logs/GLFW-0.5.2.2.log ):
> cabal: Error: some packages failed to install:
> GLFW-0.5.2.2 failed during the configure step. The exception was:
> user error ('/home/martin/.ghc/bin/ghc' exited with an error:
>
> /tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:106:14:
> No instance for (Applicative (StateT ConfState IO))
> arising from a use of ‘modify’
> In the expression: modify
> In the expression:
> modify $ \ (ConfState fs ls) -> ConfState fs (lib : ls)
> In an equation for ‘addLib’:
> addLib lib
> = modify $ \ (ConfState fs ls) -> ConfState fs (lib : ls)
>
> /tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:242:10:
> Could not deduce (Applicative (StateT s m))
> arising from the superclasses of an instance declaration
> from the context (Monad m)
> bound by the instance declaration
> at /tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:242:10-40
> In the instance declaration for ‘Monad (StateT s m)’
>
> /tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:252:10:
> Could not deduce (Applicative (StateT s m))
> arising from the superclasses of an instance declaration
> from the context (Monad m)
> bound by the instance declaration
> at /tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:252:10-47
> In the instance declaration for ‘MonadState s (StateT s m)’
> )
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
--
Regards
Sumit Sahrawat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150609/325b7ee8/attachment.html>
More information about the Beginners
mailing list