grapefruit-frp-0.1.0.7: Functional Reactive Programming core

Safe HaskellNone
LanguageHaskell98

FRP.Grapefruit.Setup

Description

A setup describes how to initialize and finalize a reactive system.

Synopsis

Documentation

data Setup Source #

A setup describes the initialization and finalization of a reactive system. It is equivalent to an action of type IO (IO ()) which initializes the system and returns a finalization action.

The mempty method of the Monoid instance denotes a setup which does no initialization and no finalization. The mappend method sequences initialization and finalization actions.

Instances

setup :: IO (IO ()) -> Setup Source #

Converts an I/O action into a setup.

fromIO :: IO () -> Setup Source #

Forms an initialization-only setup from an I/O action.

run :: Setup -> IO (IO ()) Source #

Converts a setup into an I/O action.