| Copyright | (c) Aaron Friel |
|---|---|
| License | BSD-3 |
| Maintainer | Aaron Friel <mayreply@aaronfriel.com> |
| Stability | unstable |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Control.MonadOr.Graph
Description
- class GMonadZero m => GMonadOr m where
- type Or m (i :: p) (j :: p) :: p
- type OrInv m (i :: p) (j :: p) :: Constraint
Documentation
class GMonadZero m => GMonadOr m where Source #
Graph indexed monad with a monoidal operation satisfying the left catch law.
See the typeclassopedia https://wiki.haskell.org/Typeclassopedia.
Minimal complete definition
Associated Types
type Or m (i :: p) (j :: p) :: p Source #
The or operation (<|>) on the graph index.
Default instance: Or m i j = Combine m i j
type OrInv m (i :: p) (j :: p) :: Constraint Source #