ListLike-4.7.8.2: Generalized support for list-like structures

Safe Haskell | None
Language | Haskell2010

Data.ListLike.Text.Builder

Contents

- Orphan instances

# Orphan instances

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