mchakravarty / gloss-game

A convenience wrapper around the Gloss library to make writing games in Haskell even easier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure to build against gloss 1.13

deepfire opened this issue · comments

Recent gloss versions raise the following problem:

Building library for gloss-game-0.3.3.0..
[1 of 1] Compiling Graphics.Gloss.Game ( Graphics/Gloss/Game.hs, dist/build/Graphics/Gloss/Game.o )

Graphics/Gloss/Game.hs14: error:
    • The constructor ‘G.Bitmap’ should have 1 argument, but has been given 4
    • In the pattern: G.Bitmap w h _ _
      In an equation for ‘boundingBox’:
          boundingBox (G.Bitmap w h _ _)
            = ((0, 0), (fromIntegral w, fromIntegral h))
    |
100 | boundingBox (G.Bitmap w h _ _)         = ((0, 0), (fromIntegral w, fromIntegral h))
    |              ^^^^^^^^^^^^^^^^