network-house-0.1.0.1: data and parsers for Ethernet, TCP, UDP, IPv4, IPv6, ICMP, DHCP, TFTP

Safe HaskellSafe-Inferred

Net.Wire

Synopsis

Documentation

type Wire m a = Interface m a aSource

unbounded :: (ChannelIO c m, ChannelIO c m1) => () -> m (Interface m1 o o)Source

An unbounded buffer unbounded :: ChannelIO c m => m (Wire m a)

newWire :: (MVarIO v m, MVarIO v m1, ChannelIO c m, ChannelIO c m1) => () -> m (Interface m1 o o)Source

newWire' :: (Enum a, Num a, Ord a, MVarIO v m, MVarIO v m1, ChannelIO c m, ChannelIO c m1) => a -> m (Interface m1 o o)Source

bounded :: (MVarIO v m, MVarIO v m1) => m (Interface m1 i o) -> m (Interface m1 i o)Source

bounded' :: (Enum a, Num a, Ord a, MVarIO v m, MVarIO v m1) => a -> m (Interface m1 i o) -> m (Interface m1 i o)Source

A bounded buffer that discards input when full

timedWire :: (Eq (r ()), RefIO r m1, ChannelIO c m, ChannelIO c m1, DelayIO m1, ForkIO m1) => () -> m (TimedInterface m1 o o)Source