PyF-0.10.0.1: Quasiquotations for a python like interpolated string formatter
Safe HaskellNone
LanguageHaskell2010

PyF.Internal.QQ

Description

This module uses the python mini language detailed in PythonSyntax to build an template haskell expression representing a formatted string.

Synopsis

Documentation

toExp :: Config -> String -> Q Exp Source #

Parse a string and return a formatter for it

data Config Source #

Configuration for the quasiquoter

Constructors

Config 

Fields

wrapFromString :: ExpQ -> Q Exp Source #

If OverloadedStrings is enabled, from the input expression with fromString.

expQQ :: String -> (String -> Q Exp) -> QuasiQuoter Source #

Build a quasiquoter for expression