haskell-opengl / OpenGL

Haskell bindings to OpenGL
http://www.haskell.org/haskellwiki/OpenGL
BSD 3-Clause "New" or "Revised" License
147 stars 26 forks source link

Top level constraint OpenGL #71

Closed shoooe closed 9 years ago

shoooe commented 9 years ago

I'm using a very simple cabal file that simply requires:

build-depends:
    GLFW-b       == 1.4.*,
    OpenGL       >= 2.8 && < 2.10,
    base          < 5,
    mtl          == 2.1.*,
    pretty       == 1.1.*,
    stm          == 2.4.*,
    transformers == 0.3.*

but when I try:

cabal install --only-dependencies

I get:

Resolving dependencies...
cabal: cannot configure OpenGL-0.1.0.0. It requires OpenGL >=2.8 && <2.10
For the dependency on OpenGL >=2.8 && <2.10 there are these packages:
OpenGL-2.8.0.0, OpenGL-2.9.0.0, OpenGL-2.9.1.0 and OpenGL-2.9.2.0. However
none of them are available.
OpenGL-2.8.0.0 was excluded because of the top level constraint OpenGL
==0.1.0.0
OpenGL-2.9.0.0 was excluded because of the top level constraint OpenGL
==0.1.0.0
OpenGL-2.9.1.0 was excluded because of the top level constraint OpenGL
==0.1.0.0
OpenGL-2.9.2.0 was excluded because of the top level constraint OpenGL
==0.1.0.0

What is this top level constraint OpenGL? I'm on Mac OS X Yosemite and my OpenGL is 3.3, according to this. Is that the problem?

Also I've tried this within a sandbox and hsenv and both gives the same error.

shoooe commented 9 years ago

Nevermind. Just me being silly and having:

name:          OpenGL
version:       0.1.0.0

at the beginning of the .cabal file.