Skip to content

TemplateHaskell: expose the Haskell `QuasiQuoter`

I think it would be great to expose TemplateHaskell's own Haskell QuasiQuoter to users, to be extended by users of template-haskell.

In particular, doing so would expose wired-in functions

  • quoteHsExp :: String -> Q Exp
  • quoteHsPat :: String -> Q Pat
  • quoteHsType :: String -> Q Type
  • quoteHsDec :: String -> Q Dec

(Kudos to @chrisdone for suggesting this on discord.)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information