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

Contents

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