unpacked-either: An unpacked either data type

[ bsd3, development, library ] [ Propose Tags ]

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

This library provides pattern synonyms Left and Right that allow users to pattern match on an Unpacked Either in a familiar way.

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

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

Versions [faq] 0.1.0.0
Dependencies base (>=4.10 && <5), ghc-prim [details]
License BSD-3-Clause
Copyright Copyright © 2018 chessai
Author chessai
Maintainer chessai1996@gmail.com
Category Development
Home page https://github.com/chessai/unpacked-either
Source repo head: git clone https://github.com/chessai/unpacked-either
Uploaded by chessai at Sat May 26 01:10:45 UTC 2018
Distributions NixOS:0.1.0.0
Downloads 239 total (18 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-05-26 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees