zenacy-html-2.0.2: A standard compliant HTML parsing library

Safe HaskellNone
LanguageHaskell2010

Zenacy.HTML.Internal.HTML

Description

Defines the top-level HTML types and parser functions.

Synopsis

Documentation

data HTMLOptions Source #

Defines options for the HTML parser.

Constructors

HTMLOptions 

Fields

data HTMLResult Source #

Defines an HTML parser result.

Constructors

HTMLResult 

Fields

data HTMLError Source #

An HTML error type.

Constructors

HTMLError 

Fields

Instances
Eq HTMLError Source # 
Instance details

Defined in Zenacy.HTML.Internal.HTML

Ord HTMLError Source # 
Instance details

Defined in Zenacy.HTML.Internal.HTML

Show HTMLError Source # 
Instance details

Defined in Zenacy.HTML.Internal.HTML

Default HTMLError Source #

Defines a default error.

Instance details

Defined in Zenacy.HTML.Internal.HTML

Methods

def :: HTMLError #

data HTMLNode Source #

Defines the model type for an HTML document.

Constructors

HTMLDocument 

Fields

HTMLDoctype 

Fields

HTMLFragment 

Fields

HTMLElement 

Fields

HTMLTemplate 

Fields

HTMLText 

Fields

HTMLComment 

Fields

data HTMLAttr Source #

An HTML element attribute type.

Instances
Eq HTMLAttr Source # 
Instance details

Defined in Zenacy.HTML.Internal.HTML

Ord HTMLAttr Source # 
Instance details

Defined in Zenacy.HTML.Internal.HTML

Show HTMLAttr Source # 
Instance details

Defined in Zenacy.HTML.Internal.HTML

Default HTMLAttr Source #

Defines a default attribute.

Instance details

Defined in Zenacy.HTML.Internal.HTML

Methods

def :: HTMLAttr #

htmlParse :: HTMLOptions -> Text -> Either HTMLError HTMLResult Source #

Parses an HTML document.

htmlParseEasy :: Text -> HTMLNode Source #

Parses an HTML document the easy way.

htmlFragment :: HTMLOptions -> Text -> Either HTMLError HTMLResult Source #

Parses an HTML fragment.

htmlDefaultDocument :: HTMLNode Source #

Defines a default document.

htmlDefaultDoctype :: HTMLNode Source #

Defines a default document type.

htmlDefaultFragment :: HTMLNode Source #

Defines a default document fragment.

htmlDefaultElement :: HTMLNode Source #

Defines a default element.

htmlDefaultTemplate :: HTMLNode Source #

Defines a default template.

htmlDefaultText :: HTMLNode Source #

Defines a default text.

htmlDefaultComment :: HTMLNode Source #

Defines a default comment.

htmlAttr :: Text -> Text -> HTMLAttr Source #

Makes an attribute.

htmlElem :: Text -> [HTMLAttr] -> [HTMLNode] -> HTMLNode Source #

Makes an element.

htmlText :: Text -> HTMLNode Source #

Makes a text node.