blob: b8fe5d6b2629dbf97ab9075d54fa7c30689a38c8 (
plain)
1
2
3
4
5
6
7
8
9
10
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 [])
}
|