Yampa-0.14.1: Elegant Functional Reactive Programming Language for Hybrid Systems
Copyright(c) Ivan Perez 2014-2022
(c) George Giorgidze 2007-2012
(c) Henrik Nilsson 2005-2006
(c) Antony Courtney and Henrik Nilsson Yale University 2003-2004
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainerivan.perez@keera.co.uk
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

FRP.Yampa.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