SFML-2.3.2.2: SFML bindings

Safe HaskellSafe-Inferred
LanguageHaskell98

SFML.Utils

Synopsis

Documentation

err :: Exception e => IO (Either e a) -> IO a

Run the given IO action and throw an error if it fails.

tagErr :: e -> Maybe a -> Either e a

Potentially tag a Maybe value with an error.