haskell-game / sdl2

Haskell bindings to the SDL2 library
Other
362 stars 86 forks source link

allocaBytesAligned exception when calling `version` #266

Closed willmcpherson2 closed 2 years ago

willmcpherson2 commented 2 years ago
$ cabal repl
> import SDL (version)
> version
*** Exception: allocaBytesAligned: invalid argument (alignment (=3) must be a power of two!)

sdl2 version 2.5.3.2

GHC version 9.2.2

dpwiz commented 2 years ago

Please test the version from master. I tried to fix this a few days ago in #264.

willmcpherson2 commented 2 years ago

@dpwiz Yep, that fixed it. Tested on b4fe21c1025e4be9a1eb03c19f811e1776a2b292. Closing. Thanks!

jchia commented 2 years ago

Would you mind making a new release so that stackage nightly can pick it up for the GHC 9.2?

dpwiz commented 2 years ago

@jchia Thanks for the reminder. The fix is live.