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 and ByteString.Lazy.Char8.
A class to generalise TagSoup parsing over many types of string-like types. Examples are given for the String type.
empty = ""
cons = (:)
uncons  = Nothing uncons (x:xs) = Just (x, xs)
toString = id
fromString = id
fromChar = return
strConcat = concat
strNull = null
append = (++)