As of template-haskell >= 2.17.0.0, The Q monad was generalised into a Quote m typeclass.
The implementation of refineTH already has CPP to deal with the Code newtype introduced in template-haskell-2.17.0.0, so this is just generalising the types of existing functions.
As of
template-haskell >= 2.17.0.0
, TheQ
monad was generalised into aQuote m
typeclass.The implementation of
refineTH
already has CPP to deal with theCode
newtype introduced intemplate-haskell-2.17.0.0
, so this is just generalising the types of existing functions.