cvs commit: fptools/libraries/base/GHC Arr.lhs
Simon Peyton-Jones
simonpj at microsoft.com
Tue Apr 12 11:08:49 EDT 2005
I couldn't figure out why -- and you get much better performance this
way. Anyone who sees a probem with defining unsafeRange size in terms
of unsafeIndex, please yell. The 'deriving(Ix)' stuff now does the
same.
Simon
| -----Original Message-----
| From: Ross Paterson [mailto:ross at soi.city.ac.uk]
| Sent: 12 April 2005 13:27
| To: Simon Peyton Jones
| Cc: cvs-libraries at haskell.org
| Subject: Re: cvs commit: fptools/libraries/base/GHC Arr.lhs
|
| On Mon, Apr 04, 2005 at 05:16:45AM -0700, Simon Peyton Jones wrote:
| > simonpj 2005/04/04 05:16:45 PDT
| >
| > Modified files:
| > libraries/base/GHC Arr.lhs
| > Log:
| > Default method for unsafeRangeSize should use unsafeIndex!
|
| Hmm. When unsafeRangeSize was made a method (ghc/lib/std/PrelArr.lhs
| rev. 1.29), this seems to have been deliberately avoided, with the
| definition using unsafeIndex in all the instances. I wonder why.
More information about the Cvs-libraries
mailing list