Safe Haskell | Safe-Infered |
---|
This module defines a Neuron
which dumps all Impulse
s 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 Impulse
s it receives.
- data DumpNeuron
- type DumpFromImpulse = NeuronFromImpulse DumpNeuron
- type DumpForImpulse = NeuronForImpulse DumpNeuron
- type DumpOptions = NeuronOptions DumpNeuron
Documentation
data DumpNeuron Source
type DumpFromImpulse = NeuronFromImpulse DumpNeuronSource
Impulse
s from DumpNeuron
. This Neuron
does not define any Impulse
s it would send, NoImpulse
.
type DumpForImpulse = NeuronForImpulse DumpNeuronSource
Impulse
s for DumpNeuron
. This Neuron
can recieve any Impulse
type, AnyImpulse
.
type DumpOptions = NeuronOptions DumpNeuronSource
Options for DumpNeuron
. Those options are defined:
handle ::
Handle
-
Handle
to which it dumps. Default isstdout
. showInsteadOfDump ::
Bool
- Should it use
show
when dumpingImpulse
s? By default it dumpsimpulseTime
andimpulseValue
values. prefix ::
String
- Prefix to use when dumping. Default is no prefix.