[Haskell] Re: Question for the haskell implementors: Arrays, unsafePerformIO, runST

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Feb 21 05:15:59 EST 2006


John Meacham <john at repetae.net> wrote:

> I generalized this primitive to 
> 
> drop__ :: a -> b -> b

Also known in the Prelude as "const"...

The difference is that you propose it be primitive, with the intention
that a clever compiler should not be able to bypass it by inlining its
definition and propagating the loss of the first argument outwards.

Regards,
    Malcolm


More information about the Haskell mailing list