Dangerous-0.3.2: Monads for operations that can exit early and produce warnings

Control.Dangerous

Documentation

data Exit Source

Instances

data Warning Source

Constructors

Warning String 

Instances

class Monad m => Errorable m whereSource

Methods

log :: Warning -> m ()Source

warn :: Show w => w -> m ()Source

exit :: Exit -> m aSource

exit_ :: Exit -> m ()Source

die :: Show s => Int -> s -> m aSource

die_ :: Show s => Int -> s -> m ()Source

throw :: Show s => s -> m aSource

throw_ :: Show s => s -> m ()Source

stop :: Show s => s -> m aSource

stop_ :: Show s => s -> m ()Source

dangerize :: (Errorable m, Show s) => Either s a -> m aSource