sdl2-2.2.0: Both high- and low-level bindings to the SDL library (version 2.0.4+).

Safe HaskellSafe
LanguageHaskell2010

SDL.Internal.Exception

Documentation

fromC :: Show a => Text -> Text -> (a -> Maybe b) -> a -> b Source #

throwIf :: MonadIO m => (a -> Bool) -> Text -> Text -> m a -> m a Source #

throwIf_ :: MonadIO m => (a -> Bool) -> Text -> Text -> m a -> m () Source #

throwIf0 :: (Eq a, MonadIO m, Num a) => Text -> Text -> m a -> m a Source #

throwIfNeg :: (MonadIO m, Num a, Ord a) => Text -> Text -> m a -> m a Source #

throwIfNeg_ :: (MonadIO m, Num a, Ord a) => Text -> Text -> m a -> m () Source #

throwIfNot0 :: (Eq a, MonadIO m, Num a) => Text -> Text -> m a -> m a Source #

throwIfNot0_ :: (Eq a, MonadIO m, Num a) => Text -> Text -> m a -> m () Source #

throwIfNull :: MonadIO m => Text -> Text -> m (Ptr a) -> m (Ptr a) Source #