| Safe Haskell | None |
|---|
Control.Etage.Dump
Description
This module defines a Neuron which dumps all Impulses it receives. You grow it in Incubation by using something like:
nerveDump <- (growNeuron :: NerveOnlyFor DumpNeuron) (\o -> o { showInsteadOfDump = True })
It is an example of a Neuron which can recieve any Impulse type. It processes all Impulses it receives.
- data DumpNeuron
- type DumpFromImpulse = NeuronFromImpulse DumpNeuron
- type DumpForImpulse = NeuronForImpulse DumpNeuron
- type DumpOptions = NeuronOptions DumpNeuron
Documentation
data DumpNeuron Source
type DumpFromImpulse = NeuronFromImpulse DumpNeuronSource
Impulses from DumpNeuron. This Neuron does not define any Impulses it would send, NoImpulse.
type DumpForImpulse = NeuronForImpulse DumpNeuronSource
Impulses for DumpNeuron. This Neuron can recieve any Impulse type, AnyImpulse.
type DumpOptions = NeuronOptions DumpNeuronSource
Options for DumpNeuron. Those options are defined:
handle ::Handle-
Handleto which it dumps. Default isstdout. showInsteadOfDump ::Bool- Should it use
showwhen dumpingImpulses? By default it dumpsimpulseTimeandimpulseValuevalues. prefix ::String- Prefix to use when dumping. Default is no prefix.