Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities to handle entity references.
Synopsis
- newtype EntityDecoder = EntityDecoder {
- runEntityDecoder :: Text -> Maybe Text
- decodePredefinedEntities :: EntityDecoder
- decodeHtmlEntities :: EntityDecoder
Documentation
newtype EntityDecoder Source #
A function that describes how to expand entity references.
Instances
Semigroup EntityDecoder Source # | Can be combined with '(<>)' to try multiple decoders, from left to right. |
Defined in Data.XML.Parser.Low.Entity (<>) :: EntityDecoder -> EntityDecoder -> EntityDecoder # sconcat :: NonEmpty EntityDecoder -> EntityDecoder # stimes :: Integral b => b -> EntityDecoder -> EntityDecoder # | |
Monoid EntityDecoder Source # | |
Defined in Data.XML.Parser.Low.Entity mempty :: EntityDecoder # mappend :: EntityDecoder -> EntityDecoder -> EntityDecoder # mconcat :: [EntityDecoder] -> EntityDecoder # |