xml-html-qq-0.1.0.1: Quasi-quoters for XML and HTML Documents

Copyright | Dennis Gosnell 2017
License | BSD3
Maintainer | Dennis Gosnell (cdep.illabout@gmail.com)
Stability | experimental
Portability | unknown
Safe Haskell | None
Language | Haskell2010

Text.XMLHTML.Internal

Contents

- Orphan instances

Description

Synopsis

- createExpQuasiQuoter :: (String -> Q Exp) -> QuasiQuoter
- handleParseDocErr :: String -> String -> String -> SomeException -> a

# Documentation

createExpQuasiQuoter Source #

Arguments

:: (String -> Q Exp) | The function to use for `QuasiQuoter`s `quoteExp`.
-> QuasiQuoter |

Create a `QuasiQuoter` for `Exp`s.

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 Source # liftTyped :: forall (m :: Type -> Type). Quote m => Document -> Code m Document Source #
Lift Element Source # |
Instance details Methods lift :: Quote m => Element -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Element -> Code m Element Source #
Lift Node Source # |
Instance details Methods lift :: Quote m => Node -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Node -> Code m Node Source #
Lift Doctype Source # |
Instance details Methods lift :: Quote m => Doctype -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Doctype -> Code m Doctype Source #
Lift ExternalID Source # |
Instance details Methods lift :: Quote m => ExternalID -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => ExternalID -> Code m ExternalID Source #
Lift Instruction Source # |
Instance details Methods lift :: Quote m => Instruction -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Instruction -> Code m Instruction Source #
Lift Miscellaneous Source # |
Instance details Methods lift :: Quote m => Miscellaneous -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Miscellaneous -> Code m Miscellaneous Source #
Lift Name Source # |
Instance details Methods lift :: Quote m => Name -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Name -> Code m Name Source #
Lift Prologue Source # |
Instance details Methods lift :: Quote m => Prologue -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => Prologue -> Code m Prologue Source #