Control-Monad-MultiPass-0.1.0.0: A Library for Writing Multi-Pass Algorithms.

Safe HaskellSafe

Control.Monad.MultiPass.Instrument.Delay

Description

The Delay instrument is stateless and its implementation is trivial. Its purpose is to allow values which were computed in pass p1 to be used in pass p2.

Synopsis

Documentation

data Delay p1 p2 tc Source

Abstract datatype for the instrument.

Instances

Instrument tc () () (Delay On On tc) 
Instrument tc () () (Delay On Off tc) 
Instrument tc () () (Delay Off Off tc) 

delay :: Delay p1 p2 tc -> p1 a -> p2 aSource

delay enables a value which was computed in pass p1 to be used in pass p2.