[HOpenGL] Problem with Glut
Balazs Komuves
bkomuves at gmail.com
Sun May 20 12:37:15 CEST 2012
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 <black_fury91 at yahoo.com> 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
> HOpenGL at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/hopengl/attachments/20120520/a32b38ec/attachment.htm>
More information about the HOpenGL
mailing list