diff options
Diffstat (limited to 'testsuite/tests/plugins/QuasiQuotation.hs')
-rw-r--r-- | testsuite/tests/plugins/QuasiQuotation.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/plugins/QuasiQuotation.hs b/testsuite/tests/plugins/QuasiQuotation.hs new file mode 100644 index 0000000000..b8fe5d6b26 --- /dev/null +++ b/testsuite/tests/plugins/QuasiQuotation.hs @@ -0,0 +1,11 @@ +module QuasiQuotation where + +import Language.Haskell.TH +import Language.Haskell.TH.Quote + +stringify :: QuasiQuoter +stringify = QuasiQuoter { quoteExp = return . LitE . StringL + , quotePat = return . LitP . StringL + , quoteType = return . LitT . StrTyLit + , quoteDec = const (return []) + } |