Module Result

Meta-data

Contents

data Result (a : Type) where
    Ok a
  ; Failed (String [0..1])
# Result type
fromResult : forall {a : Type} 
           . (a [0..1]) -> (Result a) -> a

return_res : forall {a : Type} 
           . a -> Result a
Monady interface for Result
bind_res : forall {a : Type, b : Type} 
         . (Result a) -> ((a -> Result b) [0..1]) -> Result b
Monady interface for Result