[<<][rtl][>>][..]
Wed Aug 1 23:53:57 EDT 2018

custom quasiquoter

https://wiki.haskell.org/Quasiquotation

So this is for String


quoteExprExp :: String -> TH.ExpQ
quoteExprPat :: String -> TH.PatQ
 
expr  :: QuasiQuoter
expr  =  QuasiQuoter { quoteExp = quoteExprExp,
                       quotePat = quoteExprPat
                      -- with ghc >= 7.4, you could also
                      -- define quoteType and quoteDec for
                      -- quasiquotes in those places too
          }




[Reply][About]
[<<][rtl][>>][..]