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), data-memocombinators, linear, sdl2, StateVar, text, vector, Yampa [details]
License MIT
Copyright 2018 Simre
Author Simre
Maintainer simre4775@gmail.com
Category Scene
Home page https://github.com/Simre1/YampaSDL2#readme
Uploaded by simre at 2018-03-10T00:07:15Z
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-03-10 [all 3 reports]


  • Data
    • Data.Colour
      • Data.Colour.CIE
        • Data.Colour.CIE.Chromaticity
        • Data.Colour.CIE.Illuminant
      • Data.Colour.Chan
      • Data.Colour.Internal
      • Data.Colour.Matrix
      • Data.Colour.Names
      • Data.Colour.RGB
      • Data.Colour.RGBSpace
        • Data.Colour.RGBSpace.HSL
        • Data.Colour.RGBSpace.HSV
      • Data.Colour.SRGB
        • Data.Colour.SRGB.Linear
  • YampaSDL2
    • YampaSDL2.Animation
    • YampaSDL2.Draw
    • Drawable
      • YampaSDL2.Drawable.Circle
      • YampaSDL2.Drawable.Image
      • YampaSDL2.Drawable.Rectangle
    • YampaSDL2.Init
    • YampaSDL2.InputOutput
    • Internal
      • YampaSDL2.Internal.AppInput
      • YampaSDL2.Internal.AppOutput
      • YampaSDL2.Internal.MainLoop
      • YampaSDL2.Internal.SDL
        • YampaSDL2.Internal.SDL.Close
        • YampaSDL2.Internal.SDL.Init
        • YampaSDL2.Internal.SDL.Input
        • YampaSDL2.Internal.SDL.Output
        • YampaSDL2.Internal.SDL.Parse
        • YampaSDL2.Internal.SDL.Start
    • YampaSDL2.ReExports


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.

Primary Goals:

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


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

This library is still work in progress

Getting started


To use yampa-sdl2 you need to have the C-library sdl2 installed on your system.


yampa-sdl2 is on hackage! Adding yampa-sdl2 to your dependencies like any other package should do the trick

How to use

Head over to the wiki.


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