module Web.Mangrove.Parse.Common.Error
( ParseError ( .. )
) where
import qualified Data.ByteString.Short as BS.SH
import qualified Data.Text as T
import qualified Numeric.Natural as Z
import Web.Willow.DOM
data ParseError
= AbruptTemplateFragment
|
| AbruptDoctypePublicIdentifier
| AbruptDoctypeSystemIdentifier
| AbsenceOfDigitsInNumericCharacterReference
| BREndTag
| CDataInHtmlContent
| CharacterReferenceOutsideUnicodeRange Z.Natural
| ControlCharacterInInputStream
| ControlCharacterReference
| DuplicateAttribute BasicAttribute
| DuplicateSingletonElement ElementParams
| EndTagWithAttributes
| EndTagWithTrailingSolidus
| EOFBeforeTagName
| EOFInCData
|
| EOFInDoctype
|
| EOFInTag
| EOFInTemplate
| EOFInText
| FramesetInBody ElementParams
| IncompletelyClosedFormattingElement
|
|
| InvalidByteSequence BS.SH.ShortByteString
| InvalidCharacterSequenceAfterDoctypeName
| InvalidFirstCharacterOfTagName
| LegacyDoctype
| MalformedTableStructure ElementParams
| MissingAttributeValue
| MissingDoctype
| MissingDoctypeName
| MissingDoctypePublicIdentifier
| MissingDoctypeSystemIdentifier
| MissingEndTagName
| MissingQuoteBeforeDoctypePublicIdentifier
| MissingQuoteBeforeDoctypeSystemIdentifier
| MissingSemicolonAfterCharacterReference
| MissingWhitespaceAfterDoctypePublicKeyword
| MissingWhitespaceAfterDoctypeSystemKeyword
| MissingWhitespaceBeforeDoctypeName
| MissingWhitespaceBetweenAttributes
| MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers
|
| NestedElementForAdoptionAgency
| NestedNonRecursiveElement
| NestedSingletonElement
| NoncharacterCharacterReference Char
| NoncharacterInInputStream
| NonVoidHtmlElementStartTagWithTrailingSolidus
| NullCharacterReference
| ObsoleteTagName T.Text
| OverlappingFormattingElements
|
| OverlappingInputElements
| SurrogateCharacterReference Char
| SurrogateInInputStream
| UnexpectedCharacterAfterDoctypeSystemIdentifier Char
| UnexpectedCharacterInAttributeName
| UnexpectedCharacterInUnquotedAttributeValue
| UnexpectedContentAfterBody
| UnexpectedDescendantElement ElementParams
| UnexpectedDoctype DocumentTypeParams
| UnexpectedElementInTableStructure
| UnexpectedElementWithImpliedEndTag
| UnexpectedEqualsSignBeforeAttributeName
| UnexpectedEndColInColumnGroup
| UnexpectedEndOfBody
| UnexpectedEndTag ElementParams
| UnexpectedFormattingElementOutOfScope
| UnexpectedHtmlElementInForeignContent
| UnexpectedMetadataOutsideOfHead
| UnexpectedNodeAfterFrameset
| UnexpectedNodeInFrameset
| UnexpectedNodeInHeadNoscript
| UnexpectedNodeInTableStructure
| UnexpectedNullCharacter
| UnexpectedQuestionMarkInsteadOfTagName
| UnexpectedSolidusInTag
| UnexpectedTableCellOutsideOfRow
| UnexpectedTextInTableStructure
| UnknownNamedCharacterReference
| UnmatchedEndTag ElementParams
| UnmatchedEndPTag
| XmlnsAttribtuteWithMismatchedValue
deriving ( ParseError -> ParseError -> Bool
(ParseError -> ParseError -> Bool)
-> (ParseError -> ParseError -> Bool) -> Eq ParseError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ParseError -> ParseError -> Bool
$c/= :: ParseError -> ParseError -> Bool
== :: ParseError -> ParseError -> Bool
$c== :: ParseError -> ParseError -> Bool
Eq, Int -> ParseError -> ShowS
[ParseError] -> ShowS
ParseError -> String
(Int -> ParseError -> ShowS)
-> (ParseError -> String)
-> ([ParseError] -> ShowS)
-> Show ParseError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ParseError] -> ShowS
$cshowList :: [ParseError] -> ShowS
show :: ParseError -> String
$cshow :: ParseError -> String
showsPrec :: Int -> ParseError -> ShowS
$cshowsPrec :: Int -> ParseError -> ShowS
Show, ReadPrec [ParseError]
ReadPrec ParseError
Int -> ReadS ParseError
ReadS [ParseError]
(Int -> ReadS ParseError)
-> ReadS [ParseError]
-> ReadPrec ParseError
-> ReadPrec [ParseError]
-> Read ParseError
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ParseError]
$creadListPrec :: ReadPrec [ParseError]
readPrec :: ReadPrec ParseError
$creadPrec :: ReadPrec ParseError
readList :: ReadS [ParseError]
$creadList :: ReadS [ParseError]
readsPrec :: Int -> ReadS ParseError
$creadsPrec :: Int -> ReadS ParseError
Read )