ddc-base-0.3.1.1: Disciplined Disciple Compiler common utilities.

Safe HaskellSafe-Inferred

DDC.Control.Monad.Check

Description

A simple exception monad.

Synopsis

Documentation

data CheckM err a Source

Constructors

CheckM (Either err a) 

Instances

Monad (CheckM err) 

throw :: err -> CheckM err aSource

Throw a type error in the monad.

result :: CheckM err a -> Either err aSource

Take the result from a check monad.