Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Useful functions from hbc-library modules ListSet, ListMap, ListUtil, HO and UTF8
Synopsis
- union :: Eq a => [a] -> [a] -> [a]
- lookupWithDefault :: Eq a => [(a, b)] -> b -> a -> b
- mapFst :: (t -> a) -> [(t, b)] -> [(a, b)]
- mapSnd :: (t -> b) -> [(a, t)] -> [(a, b)]
- breakAt :: Eq a => a -> [a] -> ([a], [a])
- chopList :: ([a] -> (b, [a])) -> [a] -> [b]
- assoc :: Eq k => (v -> r) -> r -> [(k, v)] -> k -> r
- apFst :: (t -> a) -> (t, b) -> (a, b)
- apSnd :: (t -> b) -> (a, t) -> (a, b)
- curry3 :: ((a, b, c) -> t) -> a -> b -> c -> t
- uncurry3 :: (t1 -> t2 -> t3 -> t4) -> (t1, t2, t3) -> t4
- decodeUTF8 :: String -> String
- encodeUTF8 :: String -> String
Documentation
lookupWithDefault :: Eq a => [(a, b)] -> b -> a -> b Source #
decodeUTF8 :: String -> String Source #
encodeUTF8 :: String -> String Source #
Take a Unicode string and encode it as a string with the UTF8 method.