raft-0.3.7.2: Miscellaneous Haskell utilities for data structures and data manipulation.

Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Except.Util

Contents

Description

Utilities related to the mtl package.

Synopsis

Assertions

assert :: (IsString e, MonadError e m) => e -> Bool -> m () Source #

Make an assertion.

deny :: (IsString e, MonadError e m) => e -> Bool -> m () Source #

Make a denial.

Input/Output

tryIO :: (IsString e, MonadError e m, MonadIO m) => IO a -> m a Source #

Attempt an IO action.