Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.Simple.SqlQQ.Interpolated.Parser
Description
Parsers for antiquoted Haskell expressions inside strings.
This module was largely copied from https://github.com/tmhedberg/here/blob/8a616b358bcc16bd215a78a8f6192ad9df8224b6/src/Data/String/Here/Interpolated.hs
Documentation
data HsChompState Source #
Constructors
HsChompState | |
Fields
|
data QuoteState Source #
Constructors
None | |
Single EscapeState | |
Double EscapeState |
Instances
Eq QuoteState Source # | |
Defined in Database.PostgreSQL.Simple.SqlQQ.Interpolated.Parser Methods (==) :: QuoteState -> QuoteState -> Bool Source # (/=) :: QuoteState -> QuoteState -> Bool Source # | |
Ord QuoteState Source # | |
Defined in Database.PostgreSQL.Simple.SqlQQ.Interpolated.Parser Methods compare :: QuoteState -> QuoteState -> Ordering Source # (<) :: QuoteState -> QuoteState -> Bool Source # (<=) :: QuoteState -> QuoteState -> Bool Source # (>) :: QuoteState -> QuoteState -> Bool Source # (>=) :: QuoteState -> QuoteState -> Bool Source # max :: QuoteState -> QuoteState -> QuoteState Source # min :: QuoteState -> QuoteState -> QuoteState Source # | |
Show QuoteState Source # | |
data EscapeState Source #
Instances
parseInterpolated :: String -> Either ParseError [StringPart] Source #
pInterp :: Parser [StringPart] Source #
pAnti :: Parser StringPart Source #
pEsc :: Parser StringPart Source #
pLit :: Parser StringPart Source #