Yampa-0.11.1: 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
LanguageHaskell98

FRP.Yampa.Internals

Description

Deprecated: Use FRP.Yampa instead

An interface giving access to some of the internal details of the Yampa implementation.

Legacy, deprecated module.

Synopsis

Documentation

data Event a Source #

A single possible event occurrence, that is, a value that may or may not occur. Events are used to represent values that are not produced continuously, such as mouse clicks (only produced when the mouse is clicked, as opposed to mouse positions, which are always defined).

Constructors

NoEvent 
Event a 
Instances
Monad Event Source #

Monad instance

Instance details

Defined in FRP.Yampa.Event

Methods

(>>=) :: Event a -> (a -> Event b) -> Event b #

(>>) :: Event a -> Event b -> Event b #

return :: a -> Event a #

fail :: String -> Event a #

Functor Event Source #

Functor instance (could be derived).

Instance details

Defined in FRP.Yampa.Event

Methods

fmap :: (a -> b) -> Event a -> Event b #

(<$) :: a -> Event b -> Event a #

Applicative Event Source #

Applicative instance (similar to Maybe).

Instance details

Defined in FRP.Yampa.Event

Methods

pure :: a -> Event a #

(<*>) :: Event (a -> b) -> Event a -> Event b #

liftA2 :: (a -> b -> c) -> Event a -> Event b -> Event c #

(*>) :: Event a -> Event b -> Event b #

(<*) :: Event a -> Event b -> Event a #

Alternative Event Source #

Alternative instance

Instance details

Defined in FRP.Yampa.Event

Methods

empty :: Event a #

(<|>) :: Event a -> Event a -> Event a #

some :: Event a -> Event [a] #

many :: Event a -> Event [a] #

Eq a => Eq (Event a) Source #

Eq instance (equivalent to derived instance)

Instance details

Defined in FRP.Yampa.Event

Methods

(==) :: Event a -> Event a -> Bool #

(/=) :: Event a -> Event a -> Bool #

Ord a => Ord (Event a) Source #

Ord instance (equivalent to derived instance)

Instance details

Defined in FRP.Yampa.Event

Methods

compare :: Event a -> Event a -> Ordering #

(<) :: Event a -> Event a -> Bool #

(<=) :: Event a -> Event a -> Bool #

(>) :: Event a -> Event a -> Bool #

(>=) :: Event a -> Event a -> Bool #

max :: Event a -> Event a -> Event a #

min :: Event a -> Event a -> Event a #

Show a => Show (Event a) Source # 
Instance details

Defined in FRP.Yampa.Event

Methods

showsPrec :: Int -> Event a -> ShowS #

show :: Event a -> String #

showList :: [Event a] -> ShowS #

NFData a => NFData (Event a) Source #

NFData instance

Instance details

Defined in FRP.Yampa.Event

Methods

rnf :: Event a -> () #

Forceable a => Forceable (Event a) Source #

Forceable instance

Instance details

Defined in FRP.Yampa.Event

Methods

force :: Event a -> Event a Source #