Copyright | Copyright (C) 2014- Uwe Schmidt |
---|---|
License | MIT |
Maintainer | Uwe Schmidt <uwe@fh-wedel.de> |
Stability | stable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Text.Regex.XMLSchema.Generic.StringLike
Description
Documentation
class (Eq a, IsString a, Show a) => StringLike a where Source #
WARNING: This StringLike class is not intended for use outside this regex library. It provides an abstraction for String's as used inside this library. It allows the library to work with String (list of Char), ByteString.Char8, ByteString.Lazy.Char8, Data.Text and Data.Text.Lazy.
The class is similar to the StringLike class in the tagsoup package
Methods
uncons :: a -> Maybe (Char, a) Source #
takeS :: Int -> a -> a Source #
dropS :: Int -> a -> a Source #
Instances
StringLike ByteString Source # | |
Defined in Text.Regex.XMLSchema.Generic.StringLike Methods uncons :: ByteString -> Maybe (Char, ByteString) Source # nullS :: ByteString -> Bool Source # headS :: ByteString -> Char Source # takeS :: Int -> ByteString -> ByteString Source # dropS :: Int -> ByteString -> ByteString Source # appendS :: ByteString -> ByteString -> ByteString Source # | |
StringLike ByteString Source # | |
Defined in Text.Regex.XMLSchema.Generic.StringLike Methods uncons :: ByteString -> Maybe (Char, ByteString) Source # nullS :: ByteString -> Bool Source # headS :: ByteString -> Char Source # takeS :: Int -> ByteString -> ByteString Source # dropS :: Int -> ByteString -> ByteString Source # appendS :: ByteString -> ByteString -> ByteString Source # | |
StringLike Text Source # | |
Defined in Text.Regex.XMLSchema.Generic.StringLike | |
StringLike Text Source # | |
Defined in Text.Regex.XMLSchema.Generic.StringLike | |
StringLike String Source # | |
Defined in Text.Regex.XMLSchema.Generic.StringLike |