reflex-sdl2: SDL2 and reflex FRP

[ game, library, mit, program ] [ Propose Tags ]

A minimal host for sdl2 based reflex apps.

[Skip to Readme]
Dependencies async (==2.1.*), base (>=4.7 && <5), containers (==0.5.*), dependent-sum (==0.4.*), exception-transformers (==0.4.*), mtl (==2.2.*), primitive (==0.6.*), ref-tf (==0.4.*), reflex (==0.5.*), reflex-sdl2, sdl2 (==2.3.*), stm (==2.4.*) [details]
License MIT
Copyright Copyright: (c) 2017 Schell Scivally
Author Schell Scivally
Category Game
Home page
Source repo head: git clone
Uploaded by SchellScivally at Mon Oct 30 05:05:55 UTC 2017
Distributions NixOS:
Executables reflex-sdl2-exe
Downloads 464 total (33 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user [build log]
All reported builds failed as of 2017-10-30 [all 3 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for reflex-sdl2-

[back to package description]


This is a reflex host for sdl2.

Writing and running sdl2 apps requires version 2 of the awesome SDL library. If you have nix then the build process will install SDL2 for you.


with stack & nix

Using stack and nix together is the path of enlightenment. nix handles installing SDL2 while stack builds the haskell deps.

stack --nix build

without nix

Without nix you'll have to install SDL2 yourself.


Using homebrew...

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