Safe Haskell | None |
---|---|
Language | Haskell98 |
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 #
HsChompState | |
|
data QuoteState Source #
Instances
Eq QuoteState Source # | |
Defined in Database.PostgreSQL.Simple.SqlQQ.Interpolated.Parser (==) :: QuoteState -> QuoteState -> Bool # (/=) :: QuoteState -> QuoteState -> Bool # | |
Ord QuoteState Source # | |
Defined in Database.PostgreSQL.Simple.SqlQQ.Interpolated.Parser 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 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 #