
On Tue, Aug 28, 2012 at 12:07 PM, Ivan Lazar Miljenovic < ivan.miljenovic@gmail.com> wrote:
On 28 August 2012 19:26, Simon Peyton-Jones
wrote:Admittedly, my quick sample of those packages makes it seem like they only use primitive _for_ dealing with vector (as in all the packages I looked at also had vector as a dep).
I use primitive for its MutableArray directly inside the hashtables package
if the bounds checking is turned off (the default):
https://github.com/gregorycollins/hashtables/blob/master/src/Data/HashTable/...,
and also for MutableByteArray:
https://github.com/gregorycollins/hashtables/blob/master/src/Data/HashTable/...
The types from primitive have less overhead than vector, which is important
for some of my use cases.
G
--
Gregory Collins