hxt-regex-xmlschema-9.2.0.3: A regular expression library for W3C XML Schema regular expressions

CopyrightCopyright (C) 2014- Uwe Schmidt
LicenseMIT
MaintainerUwe Schmidt <uwe@fh-wedel.de>
Stabilitystable
Safe HaskellSafe
LanguageHaskell2010

Text.Regex.XMLSchema.Generic.StringLike

Description

 

Synopsis

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

Minimal complete definition

emptyS, uncons, takeS, dropS, appendS, toString

Methods

emptyS :: a Source #

uncons :: a -> Maybe (Char, a) Source #

nullS :: a -> Bool Source #

headS :: a -> Char Source #

takeS :: Int -> a -> a Source #

dropS :: Int -> a -> a Source #

appendS :: a -> a -> a Source #

concatS :: [a] -> a Source #

toString :: a -> String Source #

Instances

StringLike String Source # 
StringLike ByteString Source # 
StringLike ByteString Source # 
StringLike Text Source # 
StringLike Text Source #