Closed jberryman closed 10 years ago
Similar to #12 (which I haven't wanted yet), but I defined this first thing when starting to use tagged
tagged
proxyOf :: a -> Proxy a proxyOf _ = Proxy
Please let me know if I'm missing something obvious.
Also, random thought re. naming, inspired by asTypeOf but with some reified notion of the type or something.
asTypeOf
as :: a -> Proxy a -> a typeOf :: a -> Proxy a
Do you have a particular use case where pure/return doesn't work?
pure
return
Ah, that was the something obvious I was missing, sorry :)
Similar to #12 (which I haven't wanted yet), but I defined this first thing when starting to use
tagged
Please let me know if I'm missing something obvious.
Also, random thought re. naming, inspired by
asTypeOf
but with some reified notion of the type or something.