unpacked-maybe: An unpacked maybe data type

[ bsd3, development, library ] [ Propose Tags ] [ Report a vulnerability ]

This module is intended to be a drop-in replacement for the Maybe type provided by base. To shave off pointer chasing, it uses '-XUnboxedSums' to represent the Maybe type as two machine words that are contiguous in memory, without loss of expressiveness that Maybe provides.

This library provides pattern synonyms Just and Nothing that allow users to pattern match on an Unpacked Maybe in the familiar way.

Functions are also provided for converting an Unpacked Maybe to the base library's Maybe, and vice versa.

This library is in alpha, and the internals are likely to change.

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies base (>=4.10 && <5), ghc-prim [details]
License BSD-3-Clause
Copyright Copyright © 2018 Kyle McKean Copyright © 2018chessai
Author Kyle McKean, chessai
Maintainer mckean.kylej@gmail.com
Category Development
Home page https://github.com/mckeankylej/unpacked-maybe#readme
Source repo head: git clone https://github.com/mckeankylej/unpacked-maybe
Uploaded by chessai at 2018-05-26T01:01:05Z
Distributions
Reverse Dependencies 2 direct, 1 indirect [details]
Downloads 918 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-05-26 [all 1 reports]