UMinho Haskell Libraries (1.0)ContentsIndex
Camila.Error
Portability experimental
Stability experimental
Maintainer João Ferreira, Alexandra Mendes
Description
Module that defines Error structure. It uses Error Monad.
Synopsis
data CamilaError'
reason :: CamilaError' -> String
type CamilaError = Either CamilaError'
runError :: RunError a => a -> Bool
Documentation
data CamilaError'
This is the type of our Camila error.
Instances
Error CamilaError'
Show CamilaError'
reason :: CamilaError' -> String
type CamilaError = Either CamilaError'
We use Either CamilaError' which represents failure using Left CamilaError' or a successful result of type a using Right a.
runError :: RunError a => a -> Bool
Produced by Haddock version 0.6