nikita-volkov / refined

Refinement types with static checking
http://hackage.haskell.org/package/refined
MIT License
183 stars 31 forks source link

Generalise type of `refineTH`, `refineTH_` #85

Closed JackKelly-Bellroy closed 2 years ago

JackKelly-Bellroy commented 2 years ago

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.