unpacked-maybe-numeric: maybes of numeric values with fewer indirections

[ bsd3, data, library ] [ Propose Tags ]

This library provides one Maybe type per the usual numeric types: Float, Double, Complex {Float|Double}, Int{8|16|32|64}, and Word{8|16|32|64|128}

All of the numeric types inside the Maybe are unboxed, while the Maybe value itself is represented as an Unboxed Sum. However, for sub-machine-size Int/Word values, the Maybe is just a wrapper around the underlying type, with out-of-bounds corresponding to the Nothing value. Thus, the use of these constructors is unsafe, as this is only checked internally.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,
Dependencies base (>= && <5), primitive (>=0.6.4), wide-word (>= && <0.2), word-compat (>=0.0.4 && <0.1) [details]
License BSD-3-Clause
Copyright 2018 Andrew Martin
Author Andrew Martin, chessai
Maintainer andrew.thaddeus@gmail.com, chessai1996@gmail.com
Category Data
Home page https://github.com/andrewthad/unpacked-maybe-numeric#readme
Bug tracker https://github.com/andrewthad/unpacked-maybe-numeric/issues
Source repo head: git clone https://github.com/andrewthad/unpacked-maybe-numeric
Uploaded by andrewthad at 2022-12-07T17:46:07Z
Distributions NixOS:
Downloads 866 total (19 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-12-07 [all 1 reports]

Readme for unpacked-maybe-numeric-

[back to package description]