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

Safe HaskellSafe-Inferred

Net.Concurrent

Description

Concurrency primitives abstracted away from the IO monad

Documentation

class (Functor io, Monad io) => ForkIO io whereSource

Methods

fork :: io () -> io ThreadIdSource

kill :: ThreadId -> io ()Source

Instances

class (Functor io, Monad io) => DelayIO io whereSource

Methods

delay :: Int -> io ()Source

Instances

DelayIO IO 
(MonadTrans t, Monad m, Functor (t m), Monad (t m), DelayIO m) => DelayIO (t m) 

class (Functor io, Monad io) => ChannelIO c io | io -> c whereSource

Methods

newChan :: io (c a)Source

readChan :: c a -> io aSource

writeChan :: c a -> a -> io ()Source

Instances

ChannelIO Chan IO 
(MonadTrans t, Monad m, Functor (t m), Monad (t m), ChannelIO c m) => ChannelIO c (t m) 

class (Functor io, Monad io) => MVarIO v io | io -> v whereSource

Methods

newEmptyMVar :: io (v a)Source

newMVar :: a -> io (v a)Source

putMVar :: v a -> a -> io ()Source

takeMVar, readMVar :: v a -> io aSource

Instances

MVarIO MVar IO 
(MonadTrans t, Monad m, Functor (t m), Monad (t m), MVarIO v m) => MVarIO v (t m) 

class (Functor io, Monad io) => RefIO r io | io -> r whereSource

Methods

newRef :: a -> io (r a)Source

readRef :: r a -> io aSource

writeRef :: r a -> a -> io ()Source

Instances

RefIO IORef IO 
(MonadTrans t, Monad m, Functor (t m), Monad (t m), RefIO c m) => RefIO c (t m)