unpacked-maybe-numeric: maybes of numeric values with fewer indirections
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]
Modules
[Index] [Quick Jump]
- Data
- Maybe
- Unpacked
- Numeric
- Complex
- Data.Maybe.Unpacked.Numeric.Double
- Data.Maybe.Unpacked.Numeric.Float
- Data.Maybe.Unpacked.Numeric.Int
- Data.Maybe.Unpacked.Numeric.Int16
- Data.Maybe.Unpacked.Numeric.Int32
- Data.Maybe.Unpacked.Numeric.Int64
- Data.Maybe.Unpacked.Numeric.Int8
- Data.Maybe.Unpacked.Numeric.Word
- Data.Maybe.Unpacked.Numeric.Word128
- Data.Maybe.Unpacked.Numeric.Word16
- Data.Maybe.Unpacked.Numeric.Word32
- Data.Maybe.Unpacked.Numeric.Word64
- Data.Maybe.Unpacked.Numeric.Word8
- Numeric
- Unpacked
- Maybe
Downloads
- unpacked-maybe-numeric-0.1.3.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.3.0, 0.1.3.1 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.17.1.0 && <5), wide-word (>=0.1.0.8 && <0.2), word-compat (>=0.0.4 && <0.1) [details] |
Tested with | ghc ==9.4.8 || ==9.6.3 || ==9.8.1 |
License | BSD-3-Clause |
Copyright | 2018 Andrew Martin |
Author | Andrew Martin, chessai |
Maintainer | amartin@layer3com.com, chessai1996@gmail.com |
Category | Data |
Home page | https://github.com/byteverse/unpacked-maybe-numeric |
Bug tracker | https://github.com/byteverse/unpacked-maybe-numeric/issues |
Source repo | head: git clone git://github.com/byteverse/unpacked-maybe-numeric.git |
Uploaded | by l3c_amartin at 2024-02-14T22:42:30Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 1166 total (2 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2024-02-14 [all 1 reports] |