module Text.Seonbi.Html.Entity
( HtmlEntity (..)
, HtmlRawAttrs
) where
import Data.Text
import Text.Seonbi.Html.Tag (HtmlTag)
import Text.Seonbi.Html.TagStack (HtmlTagStack)
type HtmlRawAttrs = Text
data HtmlEntity
= HtmlStartTag
{
HtmlEntity -> HtmlTagStack
tagStack :: HtmlTagStack
, HtmlEntity -> HtmlTag
tag :: HtmlTag
, HtmlEntity -> HtmlRawAttrs
rawAttributes :: HtmlRawAttrs
}
| HtmlEndTag
{
tagStack :: HtmlTagStack
, tag :: HtmlTag
}
| HtmlText
{
tagStack :: HtmlTagStack
, HtmlEntity -> HtmlRawAttrs
rawText :: Text
}
| HtmlCdata
{
tagStack :: HtmlTagStack
, HtmlEntity -> HtmlRawAttrs
text :: Text
}
|
{
tagStack :: HtmlTagStack
, :: Text
}
deriving (HtmlEntity -> HtmlEntity -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HtmlEntity -> HtmlEntity -> Bool
$c/= :: HtmlEntity -> HtmlEntity -> Bool
== :: HtmlEntity -> HtmlEntity -> Bool
$c== :: HtmlEntity -> HtmlEntity -> Bool
Eq, Eq HtmlEntity
HtmlEntity -> HtmlEntity -> Bool
HtmlEntity -> HtmlEntity -> Ordering
HtmlEntity -> HtmlEntity -> HtmlEntity
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: HtmlEntity -> HtmlEntity -> HtmlEntity
$cmin :: HtmlEntity -> HtmlEntity -> HtmlEntity
max :: HtmlEntity -> HtmlEntity -> HtmlEntity
$cmax :: HtmlEntity -> HtmlEntity -> HtmlEntity
>= :: HtmlEntity -> HtmlEntity -> Bool
$c>= :: HtmlEntity -> HtmlEntity -> Bool
> :: HtmlEntity -> HtmlEntity -> Bool
$c> :: HtmlEntity -> HtmlEntity -> Bool
<= :: HtmlEntity -> HtmlEntity -> Bool
$c<= :: HtmlEntity -> HtmlEntity -> Bool
< :: HtmlEntity -> HtmlEntity -> Bool
$c< :: HtmlEntity -> HtmlEntity -> Bool
compare :: HtmlEntity -> HtmlEntity -> Ordering
$ccompare :: HtmlEntity -> HtmlEntity -> Ordering
Ord, Int -> HtmlEntity -> ShowS
[HtmlEntity] -> ShowS
HtmlEntity -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HtmlEntity] -> ShowS
$cshowList :: [HtmlEntity] -> ShowS
show :: HtmlEntity -> String
$cshow :: HtmlEntity -> String
showsPrec :: Int -> HtmlEntity -> ShowS
$cshowsPrec :: Int -> HtmlEntity -> ShowS
Show)