graphted-0.1.0.2: Graph indexed monads.

Copyright(c) Aaron Friel
LicenseBSD-3
MaintainerAaron Friel <mayreply@aaronfriel.com>
Stabilityunstable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Control.MonadFail.Graph

Description

 

Synopsis

Documentation

class GMonad m => GMonadFail m where Source #

Graph indexed monad with failure.

Associated Types

type Fail m :: p Source #

The unit failure element of the index.

Default instance: Fail m = Unit m

Methods

gfail :: String -> m (Fail m) a Source #

Fail with a message.

Default implementation requires the default instance of Fail.

gfail :: (GMonadZero m, Zero m ~ Fail m) => String -> m (Fail m) a Source #

Fail with a message.

Default implementation requires the default instance of Fail.

Instances

Monad m => GMonadFail * (GWrapped m) Source # 

Associated Types

type Fail (GWrapped m) (m :: GWrapped m -> * -> *) :: p Source #

Methods

gfail :: String -> m (Fail (GWrapped m) m) a Source #