fudgets-0.18.3.2: The Fudgets Library
Safe HaskellNone
LanguageHaskell98

TypedSockets

Description

Type-safe network sockets, as described in Client/Server Applications with Fudgets.

Documentation

data TPort a b Source #

tPort :: (Show a, Read a, Show b, Read b) => Port -> TPort a b Source #

tSocketServerF :: (Read c, Show s) => TPort c s -> (Peer -> F s (SocketMsg c) -> F a (SocketMsg b)) -> F (Int, a) (Int, ClientMsg b) Source #

data ClientMsg a Source #

Constructors

ClientMsg a 
ClientEOS 
ClientNew 

Instances

Instances details
Show a => Show (ClientMsg a) Source # 
Instance details

Defined in SocketServer

data SocketMsg a Source #

Constructors

SocketMsg a 
SocketEOS 

Instances

Instances details
Functor SocketMsg Source # 
Instance details

Defined in SocketServer

Methods

fmap :: (a -> b) -> SocketMsg a -> SocketMsg b #

(<$) :: a -> SocketMsg b -> SocketMsg a #

Show a => Show (SocketMsg a) Source # 
Instance details

Defined in SocketServer