primitive-checked: primitive functions with bounds-checking

[ array, bsd3, library ] [ Propose Tags ]

This library is intended to be used as a drop-in replacement for the primitive library in test environments. It adds bounds-checking to all functions in primitive that are able to cause segfaults. It is not recommended to use this library in production. However, if you are testing a library or application you wrote that uses primitive, you can temporarily replace your primitive dependency with primitive-checked, and your segfaults will become normal Haskell exceptions that you can hunt down with GHC's stack trace facilities.

The versioning for this library matches the version of primitive that is targeted. The first three numbers of the version match the version of primitive. The fourth number is used for bug fixes. This packages deviates slightly from the PVP in that functions can be added to the API with only a bump to the fourth number.

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,
Change log
Dependencies base (>= && <5), primitive (>=0.7.3 && <0.7.4) [details]
License BSD-3-Clause
Copyright 2018 Andrew Martin
Author Andrew Martin
Maintainer Andrew Martin <>, konsumlamm <>
Category Array
Home page
Bug tracker
Source repo head: git clone
Uploaded by konsumlamm at 2022-04-15T13:59:41Z
Reverse Dependencies 7 direct, 108 indirect [details]
Downloads 2553 total (21 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-04-15 [all 1 reports]

Readme for primitive-checked-

[back to package description]


A drop-in replacement for the primitive library that adds bounds-checking to prevent segfaults. This is only intended to be used in test environments.