Re: Problem with Glut

Balazs Komuves <[email protected]> Sun, 20 May 2012 12:37:15 +0200
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <CAHZd2pm1nJTB2NHOds54yESdzwhr-2XaHETarWaTGorZAYY8zQ@mail.gmail.com>
--===============7366240073106380109==
Content-Type: multipart/alternative; boundary=047d7b2ee0b78007dc04c0755e14

--047d7b2ee0b78007dc04c0755e14
Content-Type: text/plain; charset=UTF-8

Hello,

This is actually *two different* packages, exposing the same module
(namespace).
GHC has a language extension which allows you to select the correct package:

{-# LANGUAGE PackageImports #-}
module MyModule where
import "glfw-b" Graphics.UI.GLFW
...

This specifies that you want the "GLFW-b" package (as opposed to the "GLFW"
package).

You can also hide/expose/delete packages using the ghc-pkg command line
tool:

ghc-pkg hide GLFW-0.5.0.1
ghc-pkg expose GLFW-0.5.0.1

I don't recall the remove command by heart (probably "remove" :)

Hope this helps,
Balazs


On Sat, May 19, 2012 at 5:53 PM, ai00rea <[email protected]> wrote:

>    Ambiguous module name `Graphics.UI.GLFW':
>      it was found in multiple packages: GLFW-b-0.1.0.2 GLFW-0.5.0.1
> Failed, modules loaded: none.
>
>
>
>
>
> How can i remove one version. I tried reinstalling the Haskell Platform and
> deleting all files related to glfw, but useless... Please help me.
>
> --
> View this message in context:
> http://haskell.1045720.n5.nabble.com/Problem-with-Glut-tp5689667p5710734.html
> Sent from the Haskell - HOpenGL mailing list archive at Nabble.com.
>
> _______________________________________________
> HOpenGL mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/hopengl
>

--047d7b2ee0b78007dc04c0755e14
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br>Hello,<br><br>This is actually *two different* packages, exposing the s=
ame module (namespace).<br>GHC has a language extension which allows you to=
 select the correct package:<br><br>{-# LANGUAGE PackageImports #-}<br>modu=
le MyModule where<br>
import &quot;glfw-b&quot; Graphics.UI.GLFW<br>...<br><br>This specifies tha=
t you want the &quot;GLFW-b&quot; package (as opposed to the &quot;GLFW&quo=
t; package).<br><br>You can also hide/expose/delete packages using the ghc-=
pkg command line tool:<br>
<br>ghc-pkg hide GLFW-0.5.0.1<br>ghc-pkg expose GLFW-0.5.0.1<br><br>I don&#=
39;t recall the remove command by heart (probably &quot;remove&quot; :)<br>=
<br>Hope this helps,<br>Balazs<br><br><br><div class=3D"gmail_quote">On Sat=
, May 19, 2012 at 5:53 PM, ai00rea <span dir=3D"ltr">&lt;<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</s=
pan> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"> =C2=A0 =C2=A0Ambiguous module name `Graphic=
s.UI.GLFW&#39;:<br>
 =C2=A0 =C2=A0 =C2=A0it was found in multiple packages: GLFW-b-0.1.0.2 GLFW=
-0.5.0.1<br>
Failed, modules loaded: none.<br>
<br>
<br>
<br>
<br>
<br>
How can i remove one version. I tried reinstalling the Haskell Platform and=
<br>
deleting all files related to glfw, but useless... Please help me.<br>
<br>
--<br>
View this message in context: <a href=3D"http://haskell.1045720.n5.nabble.c=
om/Problem-with-Glut-tp5689667p5710734.html" target=3D"_blank">http://haske=
ll.1045720.n5.nabble.com/Problem-with-Glut-tp5689667p5710734.html</a><br>
<div class=3D"HOEnZb"><div class=3D"h5">Sent from the Haskell - HOpenGL mai=
ling list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
HOpenGL mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://www.haskell.org/mailman/listinfo/hopengl" target=3D"_blan=
k">http://www.haskell.org/mailman/listinfo/hopengl</a><br>
</div></div></blockquote></div><br>

--047d7b2ee0b78007dc04c0755e14--


--===============7366240073106380109==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
HOpenGL mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/hopengl

--===============7366240073106380109==--