On Mon, Dec 21, 2015 at 5:13 AM, Simon Peyton Jones <simonpj@microsoft.com> wrote:

newtype T = MkT Int#

 

Provided T :: # (i.e. unlifted), I don’t think this would be too hard.  That is, you can give a new name (via newtype) to an unlifted type like Int#, Float#, Double# etc.

 

Worth a wiki page and a ticket.


There is already a ticket at least, https://ghc.haskell.org/trac/ghc/ticket/1311.

Regards,
Reid Barton