Proposal: Data.Proxy

Ross Paterson ross at soi.city.ac.uk
Thu Feb 8 05:53:05 EST 2007


On Thu, Feb 08, 2007 at 10:49:46AM +0000, Neil Mitchell wrote:
> Wouldn't a definition such as:
> 
> data Proxy a
> 
> Achieve the same effect?

In Haskell 98,

	newtype Proxy a = Proxy (Proxy a)
or
	data Proxy a = Proxy !(Proxy a)

yield one-point types.



More information about the Libraries mailing list