Safe Haskell | None |
---|---|
Language | Haskell2010 |
Mid-level parsers for XML external entities.
https://www.w3.org/TR/REC-xml/#dt-extent
All documentation examples assume the following setup:
:set -XOverloadedStrings import Data.Attoparsec.ByteString
Synopsis
- data ExternalID
- externalID :: CharParsing m => Monad m => m ExternalID
Documentation
data ExternalID Source #
External entity identifier
Instances
Eq ExternalID Source # | |
Defined in Data.XML.Parser.Mid.ExternalID (==) :: ExternalID -> ExternalID -> Bool # (/=) :: ExternalID -> ExternalID -> Bool # | |
Ord ExternalID Source # | |
Defined in Data.XML.Parser.Mid.ExternalID compare :: ExternalID -> ExternalID -> Ordering # (<) :: ExternalID -> ExternalID -> Bool # (<=) :: ExternalID -> ExternalID -> Bool # (>) :: ExternalID -> ExternalID -> Bool # (>=) :: ExternalID -> ExternalID -> Bool # max :: ExternalID -> ExternalID -> ExternalID # min :: ExternalID -> ExternalID -> ExternalID # | |
Read ExternalID Source # | |
Defined in Data.XML.Parser.Mid.ExternalID readsPrec :: Int -> ReadS ExternalID # readList :: ReadS [ExternalID] # readPrec :: ReadPrec ExternalID # readListPrec :: ReadPrec [ExternalID] # | |
Show ExternalID Source # | |
Defined in Data.XML.Parser.Mid.ExternalID showsPrec :: Int -> ExternalID -> ShowS # show :: ExternalID -> String # showList :: [ExternalID] -> ShowS # |
externalID :: CharParsing m => Monad m => m ExternalID Source #
https://www.w3.org/TR/REC-xml/#NT-ExternalID
>>>
parseOnly externalID "PUBLIC '-//Textuality//TEXT Standard open-hatch boilerplate//EN' 'http://www.textuality.com/boilerplate/OpenHatch.xml'"
Right (PublicID "-//Textuality//TEXT Standard open-hatch boilerplate//EN" "http://www.textuality.com/boilerplate/OpenHatch.xml")>>>
parseOnly externalID "SYSTEM '../grafix/OpenHatch.gif'"
Right (SystemID "../grafix/OpenHatch.gif")