Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- data PortManager i
- emptyPortManager :: [i] -> PortManager i
- isUsed :: (Eq i, Ord i) => i -> PortManager i -> Bool
- reserve :: (Eq i, Ord i, Show i) => i -> PortManager i -> Maybe (PortManager i)
- unreserve :: (Eq i, Ord i, Show i) => i -> PortManager i -> Maybe (PortManager i)
- nextPort :: (Eq i, Ord i, Show i) => PortManager i -> Maybe (i, PortManager i)
Port Management
data PortManager i Source
Show i => Show (PortManager i) |
emptyPortManager :: [i] -> PortManager i Source
reserve :: (Eq i, Ord i, Show i) => i -> PortManager i -> Maybe (PortManager i) Source
unreserve :: (Eq i, Ord i, Show i) => i -> PortManager i -> Maybe (PortManager i) Source
nextPort :: (Eq i, Ord i, Show i) => PortManager i -> Maybe (i, PortManager i) Source