Etage 0.1.6 → 0.1.7
raw patch · 4 files changed
+8/−2 lines, 4 files
Files
- Etage.cabal +1/−1
- lib/Control/Etage/Fail.hs +1/−1
- lib/Control/Etage/Incubator.hs +3/−0
- lib/Control/Etage/Propagate.hs +3/−0
Etage.cabal view
@@ -1,5 +1,5 @@ Name: Etage-Version: 0.1.6+Version: 0.1.7 Synopsis: A general data-flow framework Description: A general data-flow framework featuring nondeterminism, laziness and neurological pseudo-terminology. It can be used for example for data-flow computations or event propagation networks. It tries hard to aide type checking and to
lib/Control/Etage/Fail.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE TypeFamilies, MultiParamTypeClasses, GADTs, FlexibleInstances, ScopedTypeVariables, DeriveDataTypeable, TypeSynonymInstances, StandaloneDeriving, NamedFieldPuns #-}+{-# LANGUAGE TypeFamilies, MultiParamTypeClasses, GADTs, FlexibleInstances, ScopedTypeVariables, DeriveDataTypeable, TypeSynonymInstances, StandaloneDeriving, EmptyDataDecls, NamedFieldPuns #-} {-| This module defines a simple 'Neuron' which just fails (throws a 'DissolvingException') in 'grow'ing phase. It can be used to test
lib/Control/Etage/Incubator.hs view
@@ -166,6 +166,9 @@ of other 'Nerve's. 'Impulse's are 'propagate'd only in this direction, not in the other. If you want also the other direction use 'attachTo' again for that direction. 'attachTo' takes care of all the details (like branching 'Nerve's as necessary). +Be careful if you are attaching the same 'Nerve' multiple times as some 'Impulse's might already been 'propagate'd and thus are not+available anymore to later attached 'Nerve's. Just list all destination 'Nerve's the first time.+ Internally it uses 'propagate'. -} attachTo :: forall from for forConductivity. (Impulse from, Impulse for) => Nerve from AxonConductive for forConductivity -> [TranslatableFor from] -> Incubation ()
lib/Control/Etage/Propagate.hs view
@@ -39,6 +39,9 @@ {-| It 'grow's an internal 'Neuron' which 'propagate's 'Impulse's from a given 'Nerve' to other 'Nerve's, 'translate'-ing as necessary. +Be careful if you are 'propagate'-ing the same 'Nerve' multiple times as some 'Impulse's might already been 'propagate'd and thus are not+available anymore to later 'propagate'd 'Nerve's. Just list all destination 'Nerve's the first time.+ Check 'attachTo' for a more high-level function (of 'Incubation') taking care of all the details (like branching 'Nerve's as necessary). Use this function only if you are dealing with 'grow'ing and 'attach'ing of 'Nerve's directly. -}