HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Package2.5.5.0Graphics

sdl2

Both high- and low-level bindings to the SDL library (version 2.0.6+).

  • Version2.5.5.0
  • CategoryGraphics
  • LicenceBSD-3-Clause
  • AuthorGabríel Arthúr Pétursson, Oliver Charles
  • Maintainergabriel@system.is, ollie@ocharles.org.uk
  • Pinned byhackage sdl2 2.5.5.0
  • Sourcehackage.haskell.org/package/sdl2-2.5.5.0

Modules

38 modules
Internal modules · 4

Description

This package contains bindings to the SDL 2 library, in both high- and low-level forms:

The SDL namespace contains high-level bindings, where enumerations are split into sum types, and we perform automatic error-checking.

The SDL.Raw namespace contains an almost 1-1 translation of the C API into Haskell FFI calls. As such, this does not contain sum types nor error checking. Thus this namespace is suitable for building your own abstraction over SDL, but is not recommended for day-to-day programming.

Read SDL for a getting started guide.

Depends on

8 packages

Used by in this set · 4