yampa-sdl2: Yampa and SDL2 made easy

[ library, mit, scene ] [ Propose Tags ]

yampa-sdl2 lets you start coding your app right away instead of dealing with SDL2 first.

[Skip to Readme]
Versions [faq],,,,,,,
Dependencies base (>=4.7 && <5), colour, linear, sdl2 (>=2.2.0), sdl2-gfx, StateVar, text, Yampa [details]
License MIT
Copyright 2018 Simre
Author Simre
Maintainer simre4775@gmail.com
Category Graphics
Home page https://github.com/Simre1/YampaSDL2#readme
Uploaded by simre at 2018-02-21T09:39:15Z
Distributions NixOS:
Downloads 2982 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user [build log]
All reported builds failed as of 2018-02-21 [all 3 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for yampa-sdl2-

[back to package description]


YampaSDL2 is basically a headstart for the FRP library Yampa and SDL2. All the boilerplate which is normally necessary for these two libraries to work together is already taken care of. In the end, all that remains is a high-level interface specifically tailored to Yampa which should get you going in no time.


Screenshot of some drawn shapes.

My primary Goals:

  • As little setup as possible
  • Easy to use (some feedback would be appreciated)


  • [ ] Display Shapes
    • [x] Rectangle
    • [x] Circle
    • [x] Triangle
    • [ ] Polygon
  • [x] Display Images
  • [x] Animations
  • [x] Handle Input
  • [ ] Play sound

This library is still work in progress

Getting started


yampa-sdl2 uses the C-libraries

  • sdl2
  • sdl2-gfx

Consequently, you need to have these two libraries installed on your computer.


yampa-sdl2 is now on hackage! Adding yampa-sdl2 to your dependencies and executing the following should do the trick.

stack update
stack solver --update-config
stack build

How to use

Head over to the wiki.


This project is licensed under the MIT License - see the LICENSE file for details.