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, 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-19T10:57:24Z
Distributions NixOS:
Downloads 2982 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2018-02-19 [all 2 reports]


  • YampaSDL2


Maintainer's Corner

For package maintainers and hackage trustees

Readme for yampa-sdl2-

[back to package description]


YampaSDL2 provides SDL2 bindings to use with the FRP library Yampa.

Screenshot A screenshot of some drawn shapes.


  • [ ] Display Shapes
    • [x] Rectangle
    • [x] Circle
    • [x] Triangle
    • [ ] Polygon
  • [ ] 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.


  1. Download the library:
cd example-project
git clone https://github.com/Simre1/yampa-sdl2.git
  1. Add it to your dependencies: Edit your stack.yaml file and add yampa-sdl2 to packages. Add the yampa-sdl2 dependency to your cabal file (or package.yaml)

  2. Import the library with: import YampaSDL2

How to use

Head over to the wiki.


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