Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class (Arrow arr, Arrow (t arr)) => ArrowTrans t arr where Source #
Instances
Arrow arr => ArrowTrans (WriterA w) arr Source # | |
Defined in Control.Arrow.Trans | |
Arrow arr => ArrowTrans (ReaderA r) arr Source # | |
Defined in Control.Arrow.Trans | |
ArrowChoice arr => ArrowTrans (ErrorA e) arr Source # | |
Defined in Control.Arrow.Trans |
class Arrow arr => ArrowError e arr | arr -> e where Source #
Instances
MonadError e m => ArrowError e (Kleisli m) Source # | |
ArrowError e arr => ArrowError e (WriterA w arr) Source # | |
ArrowError e arr => ArrowError e (ReaderA r arr) Source # | |
ArrowChoice arr => ArrowError e (ErrorA e arr) Source # | |
liftEitherA :: (ArrowChoice arr, ArrowError e arr) => arr (Either e a) a Source #
mapErrorA :: ArrowError e arr => arr (a, s) b -> arr (a, (e -> e, s)) b Source #
class Arrow arr => ArrowReader r arr | arr -> r where Source #
Instances
MonadReader r m => ArrowReader r (Kleisli m) Source # | |
ArrowReader r arr => ArrowReader r (WriterA w arr) Source # | |
Arrow arr => ArrowReader r (ReaderA r arr) Source # | |
(ArrowReader r arr, ArrowChoice arr) => ArrowReader r (ErrorA e arr) Source # | |
class (Monoid w, Arrow arr) => ArrowWriter w arr | arr -> w where Source #
Instances
MonadWriter w m => ArrowWriter w (Kleisli m) Source # | |
(Monoid w, Arrow arr) => ArrowWriter w (WriterA w arr) Source # | |
ArrowWriter w arr => ArrowWriter w (ReaderA r arr) Source # | |
(ArrowWriter w arr, ArrowChoice arr) => ArrowWriter w (ErrorA e arr) Source # | |
newtype ErrorA e arr a b Source #
Instances
sequenceFirst :: Functor f => (f a, b) -> f (a, b) Source #
newtype ReaderA r arr a b Source #
ReaderA | |
|
Instances
ArrowWriter w arr => ArrowWriter w (ReaderA r arr) Source # | |
Arrow arr => ArrowReader r (ReaderA r arr) Source # | |
ArrowError e arr => ArrowError e (ReaderA r arr) Source # | |
ArrowKleisli m arr => ArrowKleisli m (ReaderA r arr) Source # | |
Defined in Control.Arrow.Extended | |
Arrow arr => ArrowTrans (ReaderA r) arr Source # | |
Defined in Control.Arrow.Trans | |
Arrow arr => Category (ReaderA r arr :: Type -> Type -> Type) Source # | |
Arrow arr => Arrow (ReaderA r arr) Source # | |
Defined in Control.Arrow.Trans arr :: (b -> c) -> ReaderA r arr b c # first :: ReaderA r arr b c -> ReaderA r arr (b, d) (c, d) # second :: ReaderA r arr b c -> ReaderA r arr (d, b) (d, c) # (***) :: ReaderA r arr b c -> ReaderA r arr b' c' -> ReaderA r arr (b, b') (c, c') # (&&&) :: ReaderA r arr b c -> ReaderA r arr b c' -> ReaderA r arr b (c, c') # | |
ArrowChoice arr => ArrowChoice (ReaderA r arr) Source # | |
Defined in Control.Arrow.Trans left :: ReaderA r arr b c -> ReaderA r arr (Either b d) (Either c d) # right :: ReaderA r arr b c -> ReaderA r arr (Either d b) (Either d c) # (+++) :: ReaderA r arr b c -> ReaderA r arr b' c' -> ReaderA r arr (Either b b') (Either c c') # (|||) :: ReaderA r arr b d -> ReaderA r arr c d -> ReaderA r arr (Either b c) d # | |
ArrowApply arr => ArrowApply (ReaderA r arr) Source # | |
Defined in Control.Arrow.Trans |
newtype WriterA w arr a b Source #
MkWriterA (arr (a, w) (b, w)) |