The first step is to install SDL.
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.
building with stack
After installing SDL, we can build with stack.
Using stack is the path of least resistance.
After building you can view an example using the built-in 2d renderer in app/Main.hs.
To run the example do:
stack exec reflex-sdl2-exe