SDL2 and reflex FRP https://github.com/schell/reflex-sdl2#readme
|Latest on Hackage:||0.2.0.0|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
with stack & nix
stack --nix build
Without nix you'll have to install SDL2 yourself.
brew install sdl2
Ubuntu / Debian
The sdl2 bindings require SDL >= 2.0.4, or for special instructions
to be followed. Assuming you're on
Ubuntu >= 16.04, you can run
apt-get install libsdl2-dev
otherwise please visit the org page above and install via their README.
After building you can view an example using the built-in 2d renderer in app/Main.hs.
To run the example do:
stack --nix exec reflex-sdl2-exe