rec-smallarray: SmallArray-based extensible records for small-scale fast reads

[ bsd3, data, library, records ] [ Propose Tags ]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS]
Change log
Dependencies base (>=4.12 && <=4.17), primitive (>=0.6.4 && <0.8) [details]
License BSD-3-Clause
Copyright 2022 Xy Ren
Author Xy Ren
Revised Revision 2 made by daylily at 2022-02-16T04:23:23Z
Category Data, Records
Home page
Bug tracker
Source repo head: git clone
Uploaded by daylily at 2022-02-04T11:11:48Z
Reverse Dependencies 1 direct, 1 indirect [details]
Downloads 191 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for rec-smallarray-

[back to package description]


GitHub Workflow Status Hackage

An immutable extensible record type based on SmallArrays, intended to provide fast reads on small structures.


  • Index: Amorized O(1) with low constant factor
  • Update: O(n)
  • Slice: O(1)
  • Cons: O(n)

Note that this structure slows down GC when its size exceeds 128.


This library started out as a module in cleff, an extensible effects library, and it needs to continue accommodating that. Contribution is welcome as long as it does not impede this library's performance nor increase its dependency footprint.