Safe Haskell | None |
---|---|
Language | Haskell98 |
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 # | |
Ord QuoteState Source # | |
Defined in Database.PostgreSQL.Simple.SqlQQ.Interpolated.Parser Methods compare :: QuoteState -> QuoteState -> Ordering # (<) :: QuoteState -> QuoteState -> Bool # (<=) :: QuoteState -> QuoteState -> Bool # (>) :: QuoteState -> QuoteState -> Bool # (>=) :: QuoteState -> QuoteState -> Bool # max :: QuoteState -> QuoteState -> QuoteState # min :: QuoteState -> QuoteState -> QuoteState # | |
Show QuoteState Source # | |
Defined in Database.PostgreSQL.Simple.SqlQQ.Interpolated.Parser Methods showsPrec :: Int -> QuoteState -> ShowS # show :: QuoteState -> String # showList :: [QuoteState] -> ShowS # |
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 #