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 -> b -> f b
- emap :: (Container f, Functor f1) => (t -> f1 b) -> f t -> f1 (f b)
- emap2 :: (Functor f2, Container f, Container f1) => (t -> f2 b) -> f1 (f t) -> f2 (f1 (f b))
- lift :: (Container f1, Functor f) => f1 (f b) -> f (f1 b)
- lift2 :: (Functor f, Container f1, Container f2) => f2 (f1 (f b)) -> f (f2 (f1 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 a e, Num a1) => a 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] #