xml-html-qq-0.1.0.1: Quasi-quoters for XML and HTML Documents
CopyrightDennis Gosnell 2017
LicenseBSD3
MaintainerDennis Gosnell (cdep.illabout@gmail.com)
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 :: Document -> Q Exp #

Lift Node Source # 
Instance details

Methods

lift :: Node -> Q Exp #

Lift Element Source # 
Instance details

Methods

lift :: Element -> Q Exp #

Lift ExternalID Source # 
Instance details

Methods

lift :: ExternalID -> Q Exp #

Lift Doctype Source # 
Instance details

Methods

lift :: Doctype -> Q Exp #

Lift Name Source # 
Instance details

Methods

lift :: Name -> Q Exp #

Lift Miscellaneous Source # 
Instance details

Methods

lift :: Miscellaneous -> Q Exp #

Lift Instruction Source # 
Instance details

Methods

lift :: Instruction -> Q Exp #

Lift Prologue Source # 
Instance details

Methods

lift :: Prologue -> Q Exp #