Skip to content

SDL under ghc 7.8.2 #2

Closed
Closed
@tbelaire

Description

It requires a slight fix, if anyone else encounters a problem installing with a recent ghc, here's how I fixed that problem.

File structure is something like

haskanoid-root/
|-> cabal.sandbox.config
\-> haskanoid/
      |->haskanoid.cabal
          .....

From haskanoid-root, (where you ran cabal sandbox init, also do cabal sdl unpack, to get something like:

haskanoid-root/
|-> cabal.sandbox.config
|-> SDL-0.6.5
\-> haskanoid/
      |->haskanoid.cabal
          .....

And edit Graphics/UI/SDL/Events.hsc line 56 to just be import Data.Typeable instead of being very selective in it's imports. Now you can cabal install from the SDL directory to get that dependency fixed.
You'll also need to bump up the base==4.6.* requirement in haskanoid.cabal`.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions