cal3d-0.1: Haskell binding to the Cal3D animation library.Source codeContentsIndex
Graphics.Animation.Cal3D.Error
Synopsis
type Fallible a = Either String a
type IOFallible a = IO (Fallible a)
checkErrorValue :: Eq a => IO a -> a -> String -> IO (Either String a)
checkError :: Eq a => IO a -> a -> String -> IO (Either String ())
Documentation
type Fallible a = Either String aSource
type IOFallible a = IO (Fallible a)Source
checkErrorValueSource
:: Eq a
=> IO aaction
-> abad value
-> Stringerror message
-> IO (Either String a)
Compares the result of an action with a bad value, such as an error code, returns (Left errormessage) if action value == bad, otherwise (Right actionresult)
checkErrorSource
:: Eq a
=> IO aaction
-> abad value
-> Stringerror message
-> IO (Either String ())
Like checkError, but returns (Right ()) instead of an interesting value.
Produced by Haddock version 2.4.2