Copyright | Copyright (C) 2007 John Goerzen |
---|---|
License | BSD3 |
Maintainer | David Fox <dsf@seereason.com>, Andreas Abel |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Data.ListLike.CharString
Description
Newtype wrapper for ByteString to enable a Char-based interface Re-exported by Data.ListLike.
Written by John Lato, jwlato@gmail.com
Synopsis
- newtype CharString = CS {
- unCS :: ByteString
- newtype CharStringLazy = CSL {
- unCSL :: ByteString
Documentation
newtype CharString Source #
Newtype wrapper around Data.ByteString.Char8.ByteString, this allows for ListLike instances with Char elements.
Instances
newtype CharStringLazy Source #
Newtype wrapper around Data.ByteString.Lazy.Char8.ByteString, this allows for ListLike instances with Char elements.
Instances
StringLike CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods toString :: CharStringLazy -> String Source # lines :: ListLike full CharStringLazy => CharStringLazy -> full Source # words :: ListLike full CharStringLazy => CharStringLazy -> full Source # unlines :: ListLike full CharStringLazy => full -> CharStringLazy Source # unwords :: ListLike full CharStringLazy => full -> CharStringLazy Source # show :: Show a => a -> CharStringLazy Source # fromStringLike :: StringLike s' => CharStringLazy -> s' Source # fromText :: Text -> CharStringLazy Source # fromLazyText :: Text -> CharStringLazy Source # | |||||
Monoid CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods mappend :: CharStringLazy -> CharStringLazy -> CharStringLazy mconcat :: [CharStringLazy] -> CharStringLazy | |||||
Semigroup CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods (<>) :: CharStringLazy -> CharStringLazy -> CharStringLazy sconcat :: NonEmpty CharStringLazy -> CharStringLazy stimes :: Integral b => b -> CharStringLazy -> CharStringLazy | |||||
IsString CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods fromString :: String -> CharStringLazy # | |||||
IsList CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Associated Types
Methods fromList :: [Item CharStringLazy] -> CharStringLazy # fromListN :: Int -> [Item CharStringLazy] -> CharStringLazy toList :: CharStringLazy -> [Item CharStringLazy] # | |||||
Read CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods readsPrec :: Int -> ReadS CharStringLazy readList :: ReadS [CharStringLazy] readPrec :: ReadPrec CharStringLazy readListPrec :: ReadPrec [CharStringLazy] | |||||
Show CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods showsPrec :: Int -> CharStringLazy -> ShowS show :: CharStringLazy -> String showList :: [CharStringLazy] -> ShowS | |||||
Eq CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods (==) :: CharStringLazy -> CharStringLazy -> Bool (/=) :: CharStringLazy -> CharStringLazy -> Bool | |||||
Ord CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString Methods compare :: CharStringLazy -> CharStringLazy -> Ordering (<) :: CharStringLazy -> CharStringLazy -> Bool (<=) :: CharStringLazy -> CharStringLazy -> Bool (>) :: CharStringLazy -> CharStringLazy -> Bool (>=) :: CharStringLazy -> CharStringLazy -> Bool max :: CharStringLazy -> CharStringLazy -> CharStringLazy min :: CharStringLazy -> CharStringLazy -> CharStringLazy | |||||
ListLike CharStringLazy Char Source # | |||||
Defined in Data.ListLike.CharString Methods empty :: CharStringLazy Source # singleton :: Char -> CharStringLazy Source # cons :: Char -> CharStringLazy -> CharStringLazy Source # snoc :: CharStringLazy -> Char -> CharStringLazy Source # append :: CharStringLazy -> CharStringLazy -> CharStringLazy Source # head :: CharStringLazy -> Char Source # uncons :: CharStringLazy -> Maybe (Char, CharStringLazy) Source # last :: CharStringLazy -> Char Source # tail :: CharStringLazy -> CharStringLazy Source # init :: CharStringLazy -> CharStringLazy Source # null :: CharStringLazy -> Bool Source # length :: CharStringLazy -> Int Source # map :: ListLike full' item' => (Char -> item') -> CharStringLazy -> full' Source # rigidMap :: (Char -> Char) -> CharStringLazy -> CharStringLazy Source # reverse :: CharStringLazy -> CharStringLazy Source # intersperse :: Char -> CharStringLazy -> CharStringLazy Source # concat :: ListLike full' CharStringLazy => full' -> CharStringLazy Source # concatMap :: ListLike full' item' => (Char -> full') -> CharStringLazy -> full' Source # rigidConcatMap :: (Char -> CharStringLazy) -> CharStringLazy -> CharStringLazy Source # any :: (Char -> Bool) -> CharStringLazy -> Bool Source # all :: (Char -> Bool) -> CharStringLazy -> Bool Source # maximum :: CharStringLazy -> Char Source # minimum :: CharStringLazy -> Char Source # replicate :: Int -> Char -> CharStringLazy Source # take :: Int -> CharStringLazy -> CharStringLazy Source # drop :: Int -> CharStringLazy -> CharStringLazy Source # splitAt :: Int -> CharStringLazy -> (CharStringLazy, CharStringLazy) Source # takeWhile :: (Char -> Bool) -> CharStringLazy -> CharStringLazy Source # dropWhile :: (Char -> Bool) -> CharStringLazy -> CharStringLazy Source # dropWhileEnd :: (Char -> Bool) -> CharStringLazy -> CharStringLazy Source # span :: (Char -> Bool) -> CharStringLazy -> (CharStringLazy, CharStringLazy) Source # break :: (Char -> Bool) -> CharStringLazy -> (CharStringLazy, CharStringLazy) Source # group :: (ListLike full' CharStringLazy, Eq Char) => CharStringLazy -> full' Source # inits :: ListLike full' CharStringLazy => CharStringLazy -> full' Source # tails :: ListLike full' CharStringLazy => CharStringLazy -> full' Source # isPrefixOf :: CharStringLazy -> CharStringLazy -> Bool Source # isSuffixOf :: CharStringLazy -> CharStringLazy -> Bool Source # isInfixOf :: CharStringLazy -> CharStringLazy -> Bool Source # stripPrefix :: CharStringLazy -> CharStringLazy -> Maybe CharStringLazy Source # stripSuffix :: CharStringLazy -> CharStringLazy -> Maybe CharStringLazy Source # elem :: Char -> CharStringLazy -> Bool Source # notElem :: Char -> CharStringLazy -> Bool Source # find :: (Char -> Bool) -> CharStringLazy -> Maybe Char Source # filter :: (Char -> Bool) -> CharStringLazy -> CharStringLazy Source # partition :: (Char -> Bool) -> CharStringLazy -> (CharStringLazy, CharStringLazy) Source # index :: CharStringLazy -> Int -> Char Source # elemIndex :: Char -> CharStringLazy -> Maybe Int Source # elemIndices :: (Eq Char, ListLike result Int) => Char -> CharStringLazy -> result Source # findIndex :: (Char -> Bool) -> CharStringLazy -> Maybe Int Source # findIndices :: ListLike result Int => (Char -> Bool) -> CharStringLazy -> result Source # sequence :: (Applicative m, ListLike fullinp (m Char)) => fullinp -> m CharStringLazy Source # mapM :: (Applicative m, ListLike full' item') => (Char -> m item') -> CharStringLazy -> m full' Source # rigidMapM :: Monad m => (Char -> m Char) -> CharStringLazy -> m CharStringLazy Source # nub :: CharStringLazy -> CharStringLazy Source # delete :: Char -> CharStringLazy -> CharStringLazy Source # deleteFirsts :: CharStringLazy -> CharStringLazy -> CharStringLazy Source # union :: CharStringLazy -> CharStringLazy -> CharStringLazy Source # intersect :: CharStringLazy -> CharStringLazy -> CharStringLazy Source # sort :: CharStringLazy -> CharStringLazy Source # insert :: Char -> CharStringLazy -> CharStringLazy Source # toList' :: CharStringLazy -> [Char] Source # fromList' :: [Char] -> CharStringLazy Source # fromListLike :: ListLike full' Char => CharStringLazy -> full' Source # nubBy :: (Char -> Char -> Bool) -> CharStringLazy -> CharStringLazy Source # deleteBy :: (Char -> Char -> Bool) -> Char -> CharStringLazy -> CharStringLazy Source # deleteFirstsBy :: (Char -> Char -> Bool) -> CharStringLazy -> CharStringLazy -> CharStringLazy Source # unionBy :: (Char -> Char -> Bool) -> CharStringLazy -> CharStringLazy -> CharStringLazy Source # intersectBy :: (Char -> Char -> Bool) -> CharStringLazy -> CharStringLazy -> CharStringLazy Source # groupBy :: (ListLike full' CharStringLazy, Eq Char) => (Char -> Char -> Bool) -> CharStringLazy -> full' Source # sortBy :: (Char -> Char -> Ordering) -> CharStringLazy -> CharStringLazy Source # insertBy :: (Char -> Char -> Ordering) -> Char -> CharStringLazy -> CharStringLazy Source # genericLength :: Num a => CharStringLazy -> a Source # genericTake :: Integral a => a -> CharStringLazy -> CharStringLazy Source # genericDrop :: Integral a => a -> CharStringLazy -> CharStringLazy Source # genericSplitAt :: Integral a => a -> CharStringLazy -> (CharStringLazy, CharStringLazy) Source # genericReplicate :: Integral a => a -> Char -> CharStringLazy Source # | |||||
FoldableLL CharStringLazy Char Source # | |||||
Defined in Data.ListLike.CharString Methods foldl :: (a -> Char -> a) -> a -> CharStringLazy -> a Source # foldl' :: (a -> Char -> a) -> a -> CharStringLazy -> a Source # foldl1 :: (Char -> Char -> Char) -> CharStringLazy -> Char Source # foldr :: (Char -> b -> b) -> b -> CharStringLazy -> b Source # foldr' :: (Char -> b -> b) -> b -> CharStringLazy -> b Source # foldr1 :: (Char -> Char -> Char) -> CharStringLazy -> Char Source # | |||||
ListLikeIO CharStringLazy Char Source # | |||||
Defined in Data.ListLike.CharString Methods hGetLine :: Handle -> IO CharStringLazy Source # hGetContents :: Handle -> IO CharStringLazy Source # hGet :: Handle -> Int -> IO CharStringLazy Source # hGetNonBlocking :: Handle -> Int -> IO CharStringLazy Source # hPutStr :: Handle -> CharStringLazy -> IO () Source # hPutStrLn :: Handle -> CharStringLazy -> IO () Source # getLine :: IO CharStringLazy Source # getContents :: IO CharStringLazy Source # putStr :: CharStringLazy -> IO () Source # putStrLn :: CharStringLazy -> IO () Source # interact :: (CharStringLazy -> CharStringLazy) -> IO () Source # readFile :: FilePath -> IO CharStringLazy Source # writeFile :: FilePath -> CharStringLazy -> IO () Source # appendFile :: FilePath -> CharStringLazy -> IO () Source # | |||||
type Item CharStringLazy Source # | |||||
Defined in Data.ListLike.CharString type Item CharStringLazy = Char |