| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Net.Utils
Description
Various utilities used in the network protocol stack modules
- class Functor f => Container f where
- replace :: Functor f => f b1 -> b2 -> f b2
- emap :: (Container f2, Functor f1) => (t -> f1 b) -> f2 t -> f1 (f2 b)
- emap2 :: (Functor f3, Container f2, Container f1) => (t -> f3 b) -> f1 (f2 t) -> f3 (f1 (f2 b))
- lift :: (Container f2, Functor f1) => f2 (f1 b) -> f1 (f2 b)
- lift2 :: (Functor f3, Container f2, Container f1) => f1 (f2 (f3 b)) -> f3 (f1 (f2 b))
- doReq :: (MVarIO v io, MVarIO v m, ChannelIO c m) => c a -> ((b -> io ()) -> a) -> m b
- foldlArray :: (IArray arr elem, Ix ix, Enum ix) => arr ix elem -> (elem -> a -> a) -> a -> a
- arraySize :: (Ix a1, IArray a2 e, Num a1) => a2 a1 e -> a1
- checksum :: [Word16] -> Word16
- pairs :: a -> [a] -> [[a]]
- bytes_to_words_big :: [Word8] -> [Word16]
- bytes_to_words_lil :: [Word8] -> [Word16]
- words_to_bytes_big :: [Word16] -> [Word8]
- words_to_bytes_lil :: [Word16] -> [Word8]
Documentation
foldlArray :: (IArray arr elem, Ix ix, Enum ix) => arr ix elem -> (elem -> a -> a) -> a -> a #
Split a list into subcomponents of length 2. The first argument is what to append in case the list is of odd length.
bytes_to_words_big :: [Word8] -> [Word16] #
bytes_to_words_lil :: [Word8] -> [Word16] #
words_to_bytes_big :: [Word16] -> [Word8] #
words_to_bytes_lil :: [Word16] -> [Word8] #