| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ondim.Targets.HTML.Instances
Synopsis
- newtype HtmlDocument = HtmlDocument {}
- toHtmlDocument :: Document -> Either String HtmlDocument
- data HtmlElement = HtmlElement {
- preNewline :: !Bool
- elementTag :: ![WNode]
- elementAttrs :: ![WAttribute]
- elementChildren :: ![HtmlNode]
- toHtmlNodes :: [Node] -> Either String [HtmlNode]
- toHtmlElement :: Element -> Either String HtmlElement
- voidElems :: Set Text
- data HtmlNode
Documentation
newtype HtmlDocument Source #
Constructors
| HtmlDocument | |
Fields | |
Instances
data HtmlElement Source #
Constructors
| HtmlElement | |
Fields
| |
Instances
| NFData HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances Methods rnf :: HtmlElement -> () # | |||||
| Generic HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances Associated Types
| |||||
| Show HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances Methods showsPrec :: Int -> HtmlElement -> ShowS # show :: HtmlElement -> String # showList :: [HtmlElement] -> ShowS # | |||||
| Eq HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances | |||||
| Ord HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances Methods compare :: HtmlElement -> HtmlElement -> Ordering # (<) :: HtmlElement -> HtmlElement -> Bool # (<=) :: HtmlElement -> HtmlElement -> Bool # (>) :: HtmlElement -> HtmlElement -> Bool # (>=) :: HtmlElement -> HtmlElement -> Bool # max :: HtmlElement -> HtmlElement -> HtmlElement # min :: HtmlElement -> HtmlElement -> HtmlElement # | |||||
| ToHtml HtmlElement Source # | |||||
| Expansible HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances Methods expandSubs :: HtmlElement -> Ondim s HtmlElement Source # | |||||
| OndimNode HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances Methods identify :: HtmlElement -> Maybe Text Source # attributes :: HtmlElement -> Ondim s [Attribute] Source # children :: HtmlElement -> [HtmlElement] Source # castFrom :: OndimNode a => Maybe (a -> [HtmlElement]) Source # renderNode :: Maybe (HtmlElement -> LByteString) Source # nodeAsText :: Maybe (HtmlElement -> Text) Source # | |||||
| type Rep HtmlElement Source # | |||||
Defined in Ondim.Targets.HTML.Instances type Rep HtmlElement = D1 ('MetaData "HtmlElement" "Ondim.Targets.HTML.Instances" "ondim-0.1.0.0-inplace-ondim-html" 'False) (C1 ('MetaCons "HtmlElement" 'PrefixI 'True) ((S1 ('MetaSel ('Just "preNewline") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "elementTag") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [WNode])) :*: (S1 ('MetaSel ('Just "elementAttrs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [WAttribute]) :*: S1 ('MetaSel ('Just "elementChildren") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [HtmlNode])))) | |||||
Instances
| NFData HtmlNode Source # | |||||
Defined in Ondim.Targets.HTML.Instances | |||||
| Generic HtmlNode Source # | |||||
Defined in Ondim.Targets.HTML.Instances Associated Types
| |||||
| Show HtmlNode Source # | |||||
| Eq HtmlNode Source # | |||||
| Ord HtmlNode Source # | |||||
Defined in Ondim.Targets.HTML.Instances | |||||
| ToHtml HtmlNode Source # | |||||
| Expansible HtmlNode Source # | |||||
Defined in Ondim.Targets.HTML.Instances | |||||
| OndimNode HtmlNode Source # | |||||
Defined in Ondim.Targets.HTML.Instances | |||||
| ToHtml [HtmlNode] Source # | |||||
| type Rep HtmlNode Source # | |||||
Defined in Ondim.Targets.HTML.Instances type Rep HtmlNode = D1 ('MetaData "HtmlNode" "Ondim.Targets.HTML.Instances" "ondim-0.1.0.0-inplace-ondim-html" 'False) (C1 ('MetaCons "Element" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtmlElement)) :+: (C1 ('MetaCons "TextNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [WNode])) :+: C1 ('MetaCons "RawNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))) | |||||