oi-0.1.0: Purely Functional Lazy Interaction with the outer world

Safe HaskellSafe-Infered

Data.OI.Combinator

Contents

Synopsis

Utility functions

(|>) :: (a -> b) -> (b -> c) -> a -> cSource

choice :: a -> a -> Bool -> aSource

Interaction Combinators

(|:|) :: (a :-> c) -> (b :-> d) -> (a, b) :-> (c, d)Source

Connect two interactions into an interaction

(|>|) :: (a :-> (p, c)) -> (b :-> (p -> d)) -> (a, b) :-> (c, d)Source

(|/|) :: (a :-> c) -> (c -> b :-> d) -> (a, b) :-> dSource

(|><|) :: (a :-> (p -> (q, c))) -> (b :-> (q -> (p, d))) -> (a, b) :-> (c, d)Source

Iteration

mapOI :: (a :-> b) -> [a] :-> [b]Source

Iteration

zipWithOI :: (a :-> (b -> c)) -> [a] :-> ([b] -> [c])Source

zipWithOI' :: (a -> b :-> c) -> [a] -> [b] :-> [c]Source

Conditional Choice

ifOI :: Bool -> (a :-> c) -> (b :-> c) -> Either a b :-> cSource

Conditional branching

choiceOI :: (a :-> c) -> (b :-> c) -> Bool -> Either a b :-> cSource

Sequencing

seqsOI :: [a] :-> ([a :-> b] -> ())Source

Sequencing

seqsOI' :: [a :-> b] -> [a] :-> ()Source