dunai-0.4.0.0: Generalised reactive framework supporting classic, arrowized and monadic FRP.

Safe HaskellSafe
LanguageHaskell2010

Data.MonadicStreamFunction.Instances.ArrowChoice

Contents

Description

Instance of ArrowChoice for Monadic Stream Functions (MSF).

Import this module to include that (orphan) instance.

Synopsis

Documentation

Orphan instances

Monad m => ArrowChoice (MSF m) Source #

ArrowChoice instance for MSFs.

Methods

left :: MSF m b c -> MSF m (Either b d) (Either c d) #

right :: MSF m b c -> MSF m (Either d b) (Either d c) #

(+++) :: MSF m b c -> MSF m b' c' -> MSF m (Either b b') (Either c c') #

(|||) :: MSF m b d -> MSF m c d -> MSF m (Either b c) d #