ekmett / tagged

phantom types
http://hackage.haskell.org/package/tagged
BSD 3-Clause "New" or "Revised" License
37 stars 26 forks source link

pr quasiquote and GHC.TypeLits #24

Open dmcclean opened 9 years ago

dmcclean commented 9 years ago

[pr| 3 |] doesn't work (with DataKinds on), because:

Illegal type variable name: `3'
When splicing a TH expression:
  Data.Proxy.Proxy :: Data.Proxy.Proxy 3

I'm not sure if this is fixable with the present state of play, because ''3 is a parse error. I'm not sure if there is a TH Name that corresponds with the type 3. I tried a few avenues and couldn't get anything to work, so I don't have a patch to offer.

A similar issue arises for Symbols.