helm-0.7.0: A functionally reactive game engine.

Safe HaskellSafe-Inferred

FRP.Helm.Utilities

Contents

Description

Contains miscellaneous utility functions such as functions for working with signals and signal generators.

Synopsis

Angles

radians :: Double -> DoubleSource

Converts radians into the standard angle measurement (radians).

degrees :: Double -> DoubleSource

Converts degrees into the standard angle measurement (radians).

turns :: Double -> DoubleSource

Converts turns into the standard angle measurement (radians). Turns are essentially full revolutions of the unit circle.

Applying

(<|) :: (a -> b) -> a -> bSource

Exactly the same as '($)', only there to make code using '(|>)' more consistent.

(|>) :: a -> (a -> b) -> bSource

Forward function application, think of it as a inverted '($)'. Provided for easy porting from Elm.