auto v0.4.2.0 Release Notes
Release Date: 2015-04-29 // almost 9 years ago-
๐ https://github.com/mstksg/auto/releases/tag/v0.4.2.0
- ๐ Removed all upper bounds on dependencies except for base.
- Control.Auto.Blip: Companions to
emitJusts
andonJusts
added, forEither
:emitEithers
andonEithers
. Emit every item inputted, but fork them into one of two output blit streams based onRight
orLeft
properties. Only preserves blip semantics/makes sense if any given input'sRight
orLeft
ness is expected to be independent from the last received one. - Control.Auto.Blip: New "blip stream collapsers",
asMaybes
andsubstituteB
.asMaybes
turns a blip stream into a stream ofMaybe
s,Just
when something was emitted, andNothing
when not.substituteB
takes a regular stream and a blip stream, and outputs the values of the regular stream whenever the blip stream doesn't emit and the emitted value when it does --- basically a more powerful version offromBlips
, where the "default" value now comes from a stream instead of being always the same. - Control.Auto.Blip: New blip stream creator,
collectN
, which emits everyn
steps with the lastn
items received. - Control.Auto.Blip: New blip stream modifiers,
collectB
andcollectBs
.collectB
waits on two blip streams and emits after it has received something from both.collectBs
is likecollectN
, except emits after everyn
emitted values received with the pastn
emitted values. - Control.Auto.Collection: "Intervaled" counterparts to
mux
andmuxMany
,muxI
andmuxManyI
. They storeInterval
s instead ofAuto
s...and when theInterval
s turned "off", they are removed from the collection. - Control.Auto.Switch: A new "count-down" switcher,
switchIn
, which acts a bit like(-->)
and(-?>)
, except the switch happens deterministically after a pre-set given number of steps. Act like the firstAuto
for a given number of steps, and then act like the second ever after. Basically a direct implementation of the commononFor n a1 --> a2
idiom.