xml-html-qq-0.1.0.1: Quasi-quoters for XML and HTML Documents
CopyrightDennis Gosnell 2017
LicenseBSD3
MaintainerDennis Gosnell ([email protected])
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Text.XMLHTML.Internal

Description

 
Synopsis

Documentation

createExpQuasiQuoter Source #

Arguments

:: (String -> Q Exp)

The function to use for QuasiQuoters quoteExp.

-> QuasiQuoter 

Create a QuasiQuoter for Exps.

handleParseDocErr Source #

Arguments

:: String

The type of a document that was being parsed. Should either be "XML" or "HTML".

-> String

The name of the function that was being used to parse the document. Should probably either be "Text.XML.parseText" or "Text.HTML.DOM.parseLT" depending on whether you're parsing XML or HTML.

-> String

The actual XML or HTML string that you were trying to parse into a Document.

-> SomeException

The exception that occurred when trying to parse the Document.

-> a 

This function handles errors that occur when a Document can't be parsed.

This function throws an error with an explanation of what happened.

Orphan instances

Lift Document Source # 
Instance details

Methods

lift :: Quote m => Document -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Document -> Code m Document #

Lift Element Source # 
Instance details

Methods

lift :: Quote m => Element -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Element -> Code m Element #

Lift Node Source # 
Instance details

Methods

lift :: Quote m => Node -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Node -> Code m Node #

Lift Doctype Source # 
Instance details

Methods

lift :: Quote m => Doctype -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Doctype -> Code m Doctype #

Lift ExternalID Source # 
Instance details

Methods

lift :: Quote m => ExternalID -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => ExternalID -> Code m ExternalID #

Lift Instruction Source # 
Instance details

Methods

lift :: Quote m => Instruction -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Instruction -> Code m Instruction #

Lift Miscellaneous Source # 
Instance details

Methods

lift :: Quote m => Miscellaneous -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Miscellaneous -> Code m Miscellaneous #

Lift Name Source # 
Instance details

Methods

lift :: Quote m => Name -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Name -> Code m Name #

Lift Prologue Source # 
Instance details

Methods

lift :: Quote m => Prologue -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Prologue -> Code m Prologue #