Skip to content

Cannot build examples (on fedora 41, GHC 9.6.6) #3

@slowdive-

Description

@slowdive-

Hello,

when trying to build with cabal build I get unresolvable dependencies:

Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: aztecs-examples-0.1.0.0 (user goal)
[__1] trying: aztecs-sdl-image-0.6.0 (dependency of aztecs-examples)
[__2] next goal: aztecs-sdl (dependency of aztecs-examples)
[__2] rejecting: aztecs-sdl-0.7.0 (conflict: aztecs-sdl-image =>
aztecs-sdl>=0.6 && <0.7)
[__2] rejecting: aztecs-sdl-0.6.0 (conflict: aztecs-examples =>
aztecs-sdl>=0.7 && <0.8)
[__2] skipping: aztecs-sdl-0.5.0, aztecs-sdl-0.4.0, aztecs-sdl-0.3.0,
aztecs-sdl-0.2.0.1, aztecs-sdl-0.2.0.0, aztecs-sdl-0.1.0.0 (has the same
characteristics that caused the previous version to fail: excluded by
constraint '>=0.7 && <0.8' from 'aztecs-examples')
[__2] fail (backjumping, conflict set: aztecs-examples, aztecs-sdl,
aztecs-sdl-image)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: aztecs-examples, aztecs-sdl,
aztecs-sdl-image

I tried removing the version requirement for aztecs-sdl-image but that just creates compile errors.

Additionally, for Mouse.hs I also get a compiler error:

Mouse.hs:15:21: error: [GHC-83865]
    • Couldn't match expected type ‘q0 (AccessT IO a0)’
                  with actual type ‘()’
    • In the first argument of ‘S.single’, namely ‘()’
      In a stmt of a 'do' block:
        mouse <- S.single () (Q.fetch @_ @MouseInput)
      In the expression:
        do mouse <- S.single () (Q.fetch @_ @MouseInput)
           liftIO $ print mouse
   |
15 |   mouse <- S.single () (Q.fetch @_ @MouseInput)
   |    

Is there a way to quickly try the examples or are they unbuildable at the moment? I'm very interested in trying this new ECS :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions