Yampa-0.13: Elegant Functional Reactive Programming Language for Hybrid Systems

Copyright(c) Antony Courtney and Henrik Nilsson Yale University 2003
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainerivan.perez@keera.co.uk
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

FRP.Yampa.Arrow

Contents

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