ListLike-4.7.8.2: Generalized support for list-like structures

Safe Haskell | None
Language | Haskell2010

Data.ListLike.UTF8

Contents

- Orphan instances

Description

Instances of `ListLike` and related classes. Re-exported by Data.ListLike.

# Orphan instances

StringLike (UTF8 ByteString) # |
Instance details Methods toString :: UTF8 ByteString -> String # lines :: ListLike full (UTF8 ByteString) => UTF8 ByteString -> full # words :: ListLike full (UTF8 ByteString) => UTF8 ByteString -> full # unlines :: ListLike full (UTF8 ByteString) => full -> UTF8 ByteString # unwords :: ListLike full (UTF8 ByteString) => full -> UTF8 ByteString # show :: Show a => a -> UTF8 ByteString # fromStringLike :: StringLike s' => UTF8 ByteString -> s' # fromText :: Text -> UTF8 ByteString # fromLazyText :: Text -> UTF8 ByteString #
StringLike (UTF8 ByteString) # |
Instance details Methods toString :: UTF8 ByteString -> String # lines :: ListLike full (UTF8 ByteString) => UTF8 ByteString -> full # words :: ListLike full (UTF8 ByteString) => UTF8 ByteString -> full # unlines :: ListLike full (UTF8 ByteString) => full -> UTF8 ByteString # unwords :: ListLike full (UTF8 ByteString) => full -> UTF8 ByteString # show :: Show a => a -> UTF8 ByteString # fromStringLike :: StringLike s' => UTF8 ByteString -> s' # fromText :: Text -> UTF8 ByteString # fromLazyText :: Text -> UTF8 ByteString #
Monoid (UTF8 ByteString) # |
Instance details Methods mempty :: UTF8 ByteString # mappend :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # mconcat :: [UTF8 ByteString] -> UTF8 ByteString #
Monoid (UTF8 ByteString) # |
Instance details Methods mempty :: UTF8 ByteString # mappend :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # mconcat :: [UTF8 ByteString] -> UTF8 ByteString #
Semigroup (UTF8 ByteString) # |
Instance details Methods (<>) :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # sconcat :: NonEmpty (UTF8 ByteString) -> UTF8 ByteString # stimes :: Integral b => b -> UTF8 ByteString -> UTF8 ByteString #
Semigroup (UTF8 ByteString) # |
Instance details Methods (<>) :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # sconcat :: NonEmpty (UTF8 ByteString) -> UTF8 ByteString # stimes :: Integral b => b -> UTF8 ByteString -> UTF8 ByteString #
IsList (UTF8 ByteString) # |
Instance details Associated Types
type Item (UTF8 ByteString) |
Instance details Defined in Data.ListLike.UTF8 type Item (UTF8 ByteString) = Char
Methods fromList :: [Item (UTF8 ByteString)] -> UTF8 ByteString # fromListN :: Int -> [Item (UTF8 ByteString)] -> UTF8 ByteString # toList :: UTF8 ByteString -> [Item (UTF8 ByteString)] #
IsList (UTF8 ByteString) # |
Instance details Associated Types
type Item (UTF8 ByteString) |
Instance details Defined in Data.ListLike.UTF8 type Item (UTF8 ByteString) = Char
Methods fromList :: [Item (UTF8 ByteString)] -> UTF8 ByteString # fromListN :: Int -> [Item (UTF8 ByteString)] -> UTF8 ByteString # toList :: UTF8 ByteString -> [Item (UTF8 ByteString)] #
ListLike (UTF8 ByteString) Char # |
Instance details Methods empty :: UTF8 ByteString # singleton :: Char -> UTF8 ByteString # cons :: Char -> UTF8 ByteString -> UTF8 ByteString # snoc :: UTF8 ByteString -> Char -> UTF8 ByteString # append :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # head :: UTF8 ByteString -> Char # uncons :: UTF8 ByteString -> Maybe (Char, UTF8 ByteString) # last :: UTF8 ByteString -> Char # tail :: UTF8 ByteString -> UTF8 ByteString # init :: UTF8 ByteString -> UTF8 ByteString # null :: UTF8 ByteString -> Bool # length :: UTF8 ByteString -> Int # map :: ListLike full' item' => (Char -> item') -> UTF8 ByteString -> full' # rigidMap :: (Char -> Char) -> UTF8 ByteString -> UTF8 ByteString # reverse :: UTF8 ByteString -> UTF8 ByteString # intersperse :: Char -> UTF8 ByteString -> UTF8 ByteString # concat :: ListLike full' (UTF8 ByteString) => full' -> UTF8 ByteString # concatMap :: ListLike full' item' => (Char -> full') -> UTF8 ByteString -> full' # rigidConcatMap :: (Char -> UTF8 ByteString) -> UTF8 ByteString -> UTF8 ByteString # any :: (Char -> Bool) -> UTF8 ByteString -> Bool # all :: (Char -> Bool) -> UTF8 ByteString -> Bool # maximum :: UTF8 ByteString -> Char # minimum :: UTF8 ByteString -> Char # replicate :: Int -> Char -> UTF8 ByteString # take :: Int -> UTF8 ByteString -> UTF8 ByteString # drop :: Int -> UTF8 ByteString -> UTF8 ByteString # splitAt :: Int -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # takeWhile :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # dropWhile :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # dropWhileEnd :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # span :: (Char -> Bool) -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # break :: (Char -> Bool) -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # group :: (ListLike full' (UTF8 ByteString), Eq Char) => UTF8 ByteString -> full' # inits :: ListLike full' (UTF8 ByteString) => UTF8 ByteString -> full' # tails :: ListLike full' (UTF8 ByteString) => UTF8 ByteString -> full' # isPrefixOf :: UTF8 ByteString -> UTF8 ByteString -> Bool # isSuffixOf :: UTF8 ByteString -> UTF8 ByteString -> Bool # isInfixOf :: UTF8 ByteString -> UTF8 ByteString -> Bool # stripPrefix :: UTF8 ByteString -> UTF8 ByteString -> Maybe (UTF8 ByteString) # stripSuffix :: UTF8 ByteString -> UTF8 ByteString -> Maybe (UTF8 ByteString) # elem :: Char -> UTF8 ByteString -> Bool # notElem :: Char -> UTF8 ByteString -> Bool # find :: (Char -> Bool) -> UTF8 ByteString -> Maybe Char # filter :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # partition :: (Char -> Bool) -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # index :: UTF8 ByteString -> Int -> Char # elemIndex :: Char -> UTF8 ByteString -> Maybe Int # elemIndices :: (Eq Char, ListLike result Int) => Char -> UTF8 ByteString -> result # findIndex :: (Char -> Bool) -> UTF8 ByteString -> Maybe Int # findIndices :: ListLike result Int => (Char -> Bool) -> UTF8 ByteString -> result # sequence :: (Applicative m, ListLike fullinp (m Char)) => fullinp -> m (UTF8 ByteString) # mapM :: (Applicative m, ListLike full' item') => (Char -> m item') -> UTF8 ByteString -> m full' # rigidMapM :: Monad m => (Char -> m Char) -> UTF8 ByteString -> m (UTF8 ByteString) # nub :: UTF8 ByteString -> UTF8 ByteString # delete :: Char -> UTF8 ByteString -> UTF8 ByteString # deleteFirsts :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # union :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # intersect :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # sort :: UTF8 ByteString -> UTF8 ByteString # insert :: Char -> UTF8 ByteString -> UTF8 ByteString # toList' :: UTF8 ByteString -> [Char] # fromList' :: [Char] -> UTF8 ByteString # fromListLike :: ListLike full' Char => UTF8 ByteString -> full' # nubBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # deleteBy :: (Char -> Char -> Bool) -> Char -> UTF8 ByteString -> UTF8 ByteString # deleteFirstsBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # unionBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # intersectBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # groupBy :: (ListLike full' (UTF8 ByteString), Eq Char) => (Char -> Char -> Bool) -> UTF8 ByteString -> full' # sortBy :: (Char -> Char -> Ordering) -> UTF8 ByteString -> UTF8 ByteString # insertBy :: (Char -> Char -> Ordering) -> Char -> UTF8 ByteString -> UTF8 ByteString # genericLength :: Num a => UTF8 ByteString -> a # genericTake :: Integral a => a -> UTF8 ByteString -> UTF8 ByteString # genericDrop :: Integral a => a -> UTF8 ByteString -> UTF8 ByteString # genericSplitAt :: Integral a => a -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # genericReplicate :: Integral a => a -> Char -> UTF8 ByteString #
ListLike (UTF8 ByteString) Char # |
Instance details Methods empty :: UTF8 ByteString # singleton :: Char -> UTF8 ByteString # cons :: Char -> UTF8 ByteString -> UTF8 ByteString # snoc :: UTF8 ByteString -> Char -> UTF8 ByteString # append :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # head :: UTF8 ByteString -> Char # uncons :: UTF8 ByteString -> Maybe (Char, UTF8 ByteString) # last :: UTF8 ByteString -> Char # tail :: UTF8 ByteString -> UTF8 ByteString # init :: UTF8 ByteString -> UTF8 ByteString # null :: UTF8 ByteString -> Bool # length :: UTF8 ByteString -> Int # map :: ListLike full' item' => (Char -> item') -> UTF8 ByteString -> full' # rigidMap :: (Char -> Char) -> UTF8 ByteString -> UTF8 ByteString # reverse :: UTF8 ByteString -> UTF8 ByteString # intersperse :: Char -> UTF8 ByteString -> UTF8 ByteString # concat :: ListLike full' (UTF8 ByteString) => full' -> UTF8 ByteString # concatMap :: ListLike full' item' => (Char -> full') -> UTF8 ByteString -> full' # rigidConcatMap :: (Char -> UTF8 ByteString) -> UTF8 ByteString -> UTF8 ByteString # any :: (Char -> Bool) -> UTF8 ByteString -> Bool # all :: (Char -> Bool) -> UTF8 ByteString -> Bool # maximum :: UTF8 ByteString -> Char # minimum :: UTF8 ByteString -> Char # replicate :: Int -> Char -> UTF8 ByteString # take :: Int -> UTF8 ByteString -> UTF8 ByteString # drop :: Int -> UTF8 ByteString -> UTF8 ByteString # splitAt :: Int -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # takeWhile :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # dropWhile :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # dropWhileEnd :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # span :: (Char -> Bool) -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # break :: (Char -> Bool) -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # group :: (ListLike full' (UTF8 ByteString), Eq Char) => UTF8 ByteString -> full' # inits :: ListLike full' (UTF8 ByteString) => UTF8 ByteString -> full' # tails :: ListLike full' (UTF8 ByteString) => UTF8 ByteString -> full' # isPrefixOf :: UTF8 ByteString -> UTF8 ByteString -> Bool # isSuffixOf :: UTF8 ByteString -> UTF8 ByteString -> Bool # isInfixOf :: UTF8 ByteString -> UTF8 ByteString -> Bool # stripPrefix :: UTF8 ByteString -> UTF8 ByteString -> Maybe (UTF8 ByteString) # stripSuffix :: UTF8 ByteString -> UTF8 ByteString -> Maybe (UTF8 ByteString) # elem :: Char -> UTF8 ByteString -> Bool # notElem :: Char -> UTF8 ByteString -> Bool # find :: (Char -> Bool) -> UTF8 ByteString -> Maybe Char # filter :: (Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # partition :: (Char -> Bool) -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # index :: UTF8 ByteString -> Int -> Char # elemIndex :: Char -> UTF8 ByteString -> Maybe Int # elemIndices :: (Eq Char, ListLike result Int) => Char -> UTF8 ByteString -> result # findIndex :: (Char -> Bool) -> UTF8 ByteString -> Maybe Int # findIndices :: ListLike result Int => (Char -> Bool) -> UTF8 ByteString -> result # sequence :: (Applicative m, ListLike fullinp (m Char)) => fullinp -> m (UTF8 ByteString) # mapM :: (Applicative m, ListLike full' item') => (Char -> m item') -> UTF8 ByteString -> m full' # rigidMapM :: Monad m => (Char -> m Char) -> UTF8 ByteString -> m (UTF8 ByteString) # nub :: UTF8 ByteString -> UTF8 ByteString # delete :: Char -> UTF8 ByteString -> UTF8 ByteString # deleteFirsts :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # union :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # intersect :: UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # sort :: UTF8 ByteString -> UTF8 ByteString # insert :: Char -> UTF8 ByteString -> UTF8 ByteString # toList' :: UTF8 ByteString -> [Char] # fromList' :: [Char] -> UTF8 ByteString # fromListLike :: ListLike full' Char => UTF8 ByteString -> full' # nubBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString # deleteBy :: (Char -> Char -> Bool) -> Char -> UTF8 ByteString -> UTF8 ByteString # deleteFirstsBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # unionBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # intersectBy :: (Char -> Char -> Bool) -> UTF8 ByteString -> UTF8 ByteString -> UTF8 ByteString # groupBy :: (ListLike full' (UTF8 ByteString), Eq Char) => (Char -> Char -> Bool) -> UTF8 ByteString -> full' # sortBy :: (Char -> Char -> Ordering) -> UTF8 ByteString -> UTF8 ByteString # insertBy :: (Char -> Char -> Ordering) -> Char -> UTF8 ByteString -> UTF8 ByteString # genericLength :: Num a => UTF8 ByteString -> a # genericTake :: Integral a => a -> UTF8 ByteString -> UTF8 ByteString # genericDrop :: Integral a => a -> UTF8 ByteString -> UTF8 ByteString # genericSplitAt :: Integral a => a -> UTF8 ByteString -> (UTF8 ByteString, UTF8 ByteString) # genericReplicate :: Integral a => a -> Char -> UTF8 ByteString #
FoldableLL (UTF8 ByteString) Char # |
Instance details Methods foldl :: (a -> Char -> a) -> a -> UTF8 ByteString -> a # foldl' :: (a -> Char -> a) -> a -> UTF8 ByteString -> a # foldl1 :: (Char -> Char -> Char) -> UTF8 ByteString -> Char # foldr :: (Char -> b -> b) -> b -> UTF8 ByteString -> b # foldr' :: (Char -> b -> b) -> b -> UTF8 ByteString -> b # foldr1 :: (Char -> Char -> Char) -> UTF8 ByteString -> Char #
FoldableLL (UTF8 ByteString) Char # |
Instance details Methods foldl :: (a -> Char -> a) -> a -> UTF8 ByteString -> a # foldl' :: (a -> Char -> a) -> a -> UTF8 ByteString -> a # foldl1 :: (Char -> Char -> Char) -> UTF8 ByteString -> Char # foldr :: (Char -> b -> b) -> b -> UTF8 ByteString -> b # foldr' :: (Char -> b -> b) -> b -> UTF8 ByteString -> b # foldr1 :: (Char -> Char -> Char) -> UTF8 ByteString -> Char #
ListLikeIO (UTF8 ByteString) Char # |
Instance details Methods hGetLine :: Handle -> IO (UTF8 ByteString) # hGetContents :: Handle -> IO (UTF8 ByteString) # hGet :: Handle -> Int -> IO (UTF8 ByteString) # hGetNonBlocking :: Handle -> Int -> IO (UTF8 ByteString) # hPutStr :: Handle -> UTF8 ByteString -> IO () # hPutStrLn :: Handle -> UTF8 ByteString -> IO () # getLine :: IO (UTF8 ByteString) # getContents :: IO (UTF8 ByteString) # putStr :: UTF8 ByteString -> IO () # putStrLn :: UTF8 ByteString -> IO () # interact :: (UTF8 ByteString -> UTF8 ByteString) -> IO () # readFile :: FilePath -> IO (UTF8 ByteString) # writeFile :: FilePath -> UTF8 ByteString -> IO () # appendFile :: FilePath -> UTF8 ByteString -> IO () #
ListLikeIO (UTF8 ByteString) Char # |
Instance details Methods hGetLine :: Handle -> IO (UTF8 ByteString) # hGetContents :: Handle -> IO (UTF8 ByteString) # hGet :: Handle -> Int -> IO (UTF8 ByteString) # hGetNonBlocking :: Handle -> Int -> IO (UTF8 ByteString) # hPutStr :: Handle -> UTF8 ByteString -> IO () # hPutStrLn :: Handle -> UTF8 ByteString -> IO () # getLine :: IO (UTF8 ByteString) # getContents :: IO (UTF8 ByteString) # putStr :: UTF8 ByteString -> IO () # putStrLn :: UTF8 ByteString -> IO () # interact :: (UTF8 ByteString -> UTF8 ByteString) -> IO () # readFile :: FilePath -> IO (UTF8 ByteString) # writeFile :: FilePath -> UTF8 ByteString -> IO () # appendFile :: FilePath -> UTF8 ByteString -> IO () #