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

Modulesdl2-2.5.5.0Haskell2010

SDL.Init

  • 1 type
  • 4 values
  • Packagesdl2-2.5.5.0
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInit.hs
valueinitialize :: (Foldable f, Functor m, MonadIO m) => f InitFlag -> m ()
#

Initializes SDL and the given subsystems. Do not call any SDL functions prior to this one, unless otherwise documented that you may do so.

You may call this function again with additional subsystems to initialize.

Throws SDLEx.SDLException if initialization fails.

datadata InitFlag
#
Instances10Bounded, Enum, Eq, Data, Ord, Read, …
valuequit :: MonadIO m => m ()
#

Quit and shutdown SDL, freeing any resources that may have been in use. Do not call any SDL functions after you've called this function, unless otherwise documented that you may do so.

valueversion :: (Integral a, MonadIO m) => m (a, a, a)
#

The major, minor, and patch versions of the SDL library linked with. Does not require initialization.