Haskell Platform proposal: Add the vector package

Henning Thielemann lemming at henning-thielemann.de
Fri Jul 20 20:11:29 BST 2012


Am 16.07.2012 01:41, schrieb Gábor Lehel:
> On Wed, Jul 4, 2012 at 5:33 PM, Roman Leshchinskiy <rl at cse.unsw.edu.au> wrote:
>> [...] It still uses
>> "unsafe" to distinguish between functions that do bounds checking and
>> those that don't. What would be the benefit of moving functions like
>> unsafeIndex into a separate module (and would it be called
>> Unsafe.unsafeIndex then? or would it be Unsafe.index?)? [...]
>
> Just to pick out this small tidbit, FWIW the Vector.index and
> Vector.Unsafe.index scheme has the advantage that you could simply
> swap out a module import to switch between bounds-checked and
> unchecked implementations.

Since I use qualified imports wherever possible, I would strongly prefer 
this.





More information about the Haskell-platform mailing list