bearriver-0.14.10: FRP Yampa replacement implemented with Monadic Stream Functions.
Copyright(c) Ivan Perez 2014-2023
(c) George Giorgidze 2007-2012
(c) Henrik Nilsson 2005-2006
(c) Antony Courtney and Henrik Nilsson Yale University 2003-2004
LicenseBSD3
Maintainerivan.perez@keera.co.uk
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

FRP.BearRiver.Arrow

Description

Arrow helper functions.

Synopsis
  • dup :: a -> (a, a)
  • arr2 :: Arrow a => (b -> c -> d) -> a (b, c) d
  • arr3 :: Arrow a => (b -> c -> d -> e) -> a (b, c, d) e
  • arr4 :: Arrow a => (b -> c -> d -> e -> f) -> a (b, c, d, e) f
  • arr5 :: Arrow a => (b -> c -> d -> e -> f -> g) -> a (b, c, d, e, f) g

Arrow plumbing aids

dup :: a -> (a, a) Source #

Duplicate an input.

Liftings

arr2 :: Arrow a => (b -> c -> d) -> a (b, c) d Source #

Lift a binary function onto an arrow.

arr3 :: Arrow a => (b -> c -> d -> e) -> a (b, c, d) e Source #

Lift a 3-ary function onto an arrow.

arr4 :: Arrow a => (b -> c -> d -> e -> f) -> a (b, c, d, e) f Source #

Lift a 4-ary function onto an arrow.

arr5 :: Arrow a => (b -> c -> d -> e -> f -> g) -> a (b, c, d, e, f) g Source #

Lift a 5-ary function onto an arrow.