Error details about a failure to call an SDL routine. Almost all functions in this library have the ability to produce exceptions of this type. Inspection should help you learn more about what has gone wrong.
Constructors
SDLCallFailedA call to a low-level SDL C function failed unexpectedly.
sdlExceptionCaller :: !TextThe Haskell routine that was trying to call a C function
sdlFunction :: !TextThe C function that was called and produced an error
sdlExceptionError :: !TextSDL's understanding of what has gone wrong
SDLUnexpectedArgumentAn SDL C function was called with an unexpected argument.
sdlExceptionCaller :: !TextThe Haskell routine that was trying to call a C function
sdlFunction :: !TextThe C function that was called and produced an error
sdlUnknownValue :: !StringThe argument that SDL failed to understand
SDLUnknownHintValueA hint was attempted to be set, but SDL does not know about this hint.
sdlHint :: !StringThe hint that could not be set
sdlUnknownValue :: !StringThe argument that SDL failed to understand
Instances8Eq, Data, Ord, Read, Show, Generic, …
Eq SDLExceptionDefined in sdl2-2.5.5.0 · SDL.ExceptionData SDLExceptionDefined in sdl2-2.5.5.0 · SDL.ExceptionOrd SDLExceptionDefined in sdl2-2.5.5.0 · SDL.ExceptionRead SDLExceptionDefined in sdl2-2.5.5.0 · SDL.ExceptionShow SDLExceptionDefined in sdl2-2.5.5.0 · SDL.ExceptionGeneric SDLExceptionDefined in sdl2-2.5.5.0 · SDL.ExceptionException SDLExceptionDefined in sdl2-2.5.5.0 · SDL.Exceptiontype Rep SDLException = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Exception"SDLException"
"SDL.Exception"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"SDLCallFailed"
'PrefixI 'True) (S1 ('MetaSel ('Just"sdlExceptionCaller"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just"sdlFunction"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just"sdlExceptionError"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) :+: (C1 ('MetaCons"SDLUnexpectedArgument"
'PrefixI 'True) (S1 ('MetaSel ('Just"sdlExceptionCaller"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just"sdlFunction"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just"sdlUnknownValue"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String))) :+: C1 ('MetaCons"SDLUnknownHintValue"
'PrefixI 'True) (S1 ('MetaSel ('Just"sdlHint"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Just"sdlUnknownValue"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String))))