Safe Haskell | None |
---|---|
Language | Haskell98 |
GuardedEvents implements guarded events for channels.
Documentation
data GuardedChannel guard value Source #
Instances
HasListen GuardedChannel Source # | |
Defined in Events.GuardedChannels listen :: Guard guard => GuardedChannel guard a -> GuardedEvent guard a Source # | |
Guard guard => HasReceive (GuardedChannel guard) Source # | |
Defined in Events.GuardedChannels receive :: GuardedChannel guard a -> Event a Source # | |
HasSend (GuardedChannel guard) Source # | |
Defined in Events.GuardedChannels send :: GuardedChannel guard a -> a -> Event () Source # |
newGuardedChannel :: HasGuardedChannel guardQueue valueQueue guard value => GQ guardQueue value -> VQ valueQueue -> IO (GuardedChannel guard value) Source #
sneak :: Guard guard => GuardedChannel guard value -> GuardedEvent guard (Maybe value) Source #
replace :: Guard guard => GuardedChannel guard value -> value -> GuardedEvent guard (Maybe value) Source #
class (Guard guard, HasEmpty guardQueue, HasEmpty valueQueue, CanSendX guardQueue valueQueue guard value, CanSendX valueQueue guardQueue value guard) => HasGuardedChannel guardQueue valueQueue guard value Source #
Instances
(Guard guard, HasEmpty guardQueue, HasEmpty valueQueue, CanSendX guardQueue valueQueue guard value, CanSendX valueQueue guardQueue value guard) => HasGuardedChannel guardQueue valueQueue guard value Source # | |
Defined in Events.GuardedChannels |