Yampa-0.9.7: Library for programming hybrid systems.

Copyright(c) Antony Courtney and Henrik Nilsson, Yale University, 2003
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainernilsson@cs.yale.edu
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

FRP.Yampa.Miscellany

Description

Collection of entities that really should be part of the Haskell 98 prelude or simply have no better home.

!!! Reverse function composition should go. !!! Better to use <<< and >>> for, respectively, !!! function composition and reverse function composition.

Documentation

(#) :: (a -> b) -> (b -> c) -> a -> c infixl 9

dup :: a -> (a, a)

swap :: (a, b) -> (b, a)

mapFst :: (a -> b) -> [(a, c)] -> [(b, c)]

mapSnd :: (a -> b) -> [(c, a)] -> [(c, b)]

sel3_1 :: (a, b, c) -> a

sel3_2 :: (a, b, c) -> b

sel3_3 :: (a, b, c) -> c

sel4_1 :: (a, b, c, d) -> a

sel4_2 :: (a, b, c, d) -> b

sel4_3 :: (a, b, c, d) -> c

sel4_4 :: (a, b, c, d) -> d

sel5_1 :: (a, b, c, d, e) -> a

sel5_2 :: (a, b, c, d, e) -> b

sel5_3 :: (a, b, c, d, e) -> c

sel5_4 :: (a, b, c, d, e) -> d

sel5_5 :: (a, b, c, d, e) -> e

fDiv :: RealFrac a => a -> a -> Integer infixl 7

fMod :: RealFrac a => a -> a -> a infixl 7

fDivMod :: RealFrac a => a -> a -> (Integer, a)