Safe Haskell | Safe-Inferred |
---|
WARNING: This module is not intended for use outside the TagSoup library.
This module provides an abstraction for String's as used inside TagSoup. It allows TagSoup to work with String (list of Char), ByteString.Char8, ByteString.Lazy.Char8, Data.Text and Data.Text.Lazy.
- class (Typeable a, Eq a) => StringLike a where
- castString :: (StringLike a, StringLike b) => a -> b
Documentation
class (Typeable a, Eq a) => StringLike a whereSource
A class to generalise TagSoup parsing over many types of string-like types. Examples are given for the String type.
castString :: (StringLike a, StringLike b) => a -> bSource
Convert a String from one type to another.