<div dir="ltr">It seems like the gflw package doesn't support ghc 7.10 yet. Try downgrading to 7.8.4 and it should work.</div><div class="gmail_extra"><br><div class="gmail_quote">On 8 June 2015 at 18:01, Martin Vlk <span dir="ltr"><<a href="mailto:martin@vlkk.cz" target="_blank">martin@vlkk.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I am trying to install the Euterpea library, which depends on glfw,<br>
but it is failing to install with a compilation failure.<br>
<br>
Could someone take a look at the error and tell me what might be wrong?<br>
<br>
Many Thanks<br>
Martin<br>
<br>
The Glorious Glasgow Haskell Compilation System, version 7.10.1<br>
cabal-install version 1.22.4.0<br>
using version 1.22.3.0 of the Cabal library<br>
<br>
$ cabal update<br>
$ cabal install glfw<br>
<br>
Resolving dependencies...<br>
Configuring GLFW-0.5.2.2...<br>
Failed to install GLFW-0.5.2.2<br>
Build log ( /home/martin/.cabal/logs/GLFW-0.5.2.2.log ):<br>
cabal: Error: some packages failed to install:<br>
GLFW-0.5.2.2 failed during the configure step. The exception was:<br>
user error ('/home/martin/.ghc/bin/ghc' exited with an error:<br>
<br>
/tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:106:14:<br>
No instance for (Applicative (StateT ConfState IO))<br>
arising from a use of ‘modify’<br>
In the expression: modify<br>
In the expression:<br>
modify $ \ (ConfState fs ls) -> ConfState fs (lib : ls)<br>
In an equation for ‘addLib’:<br>
addLib lib<br>
= modify $ \ (ConfState fs ls) -> ConfState fs (lib : ls)<br>
<br>
/tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:242:10:<br>
Could not deduce (Applicative (StateT s m))<br>
arising from the superclasses of an instance declaration<br>
from the context (Monad m)<br>
bound by the instance declaration<br>
at /tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:242:10-40<br>
In the instance declaration for ‘Monad (StateT s m)’<br>
<br>
/tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:252:10:<br>
Could not deduce (Applicative (StateT s m))<br>
arising from the superclasses of an instance declaration<br>
from the context (Monad m)<br>
bound by the instance declaration<br>
at /tmp/GLFW-0.5.2.2-20349/GLFW-0.5.2.2/dist/setup/setup.hs:252:10-47<br>
In the instance declaration for ‘MonadState s (StateT s m)’<br>
)<br>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Regards</div><div dir="ltr"><div><br></div><div>Sumit Sahrawat</div></div></div></div></div></div></div>
</div>