fastsum: A fast open-union type suitable for 100+ contained alternatives
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
This package provides Data.Sum, an open-union type, similar to the Union type that powers the implementation of Oleg Kiselyov's extensible-effects library.
Unlike most open-union implementations, this type is very fast to compile, even when the type-level list of alternatives contains hundreds of entries. Membership queries are constant-time, compiling to a single type-level natural lookup in a closed type family, unlike the traditional encoding of Union, which relies on recursive typeclass lookups. As such, this type lends itself to representing abstract syntax trees or other rich data structures.
This project is safe to use in production. Any performance problems at compile-time or runtime should be filed as bugs.
[Skip to Readme]
Properties
Versions | 0.1.0.0, 0.1.1.0, 0.1.1.0, 0.1.1.1, 0.2.0.0 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.7 && <5), deepseq (>=1.4 && <2), fastsum, ghc-prim (>=0.5 && <1), hashable (>=1.2 && <2), template-haskell (>=2.12 && <3) [details] |
License | BSD-3-Clause |
Copyright | Rob Rix, Josh Vera, Allele Dev, Patrick Thomson 2016-2018 |
Author | Rob Rix, Josh Vera, Allele Dev, Patrick Thomson |
Maintainer | patrickt@github.com |
Category | Data |
Home page | https://github.com/patrickt/fastsum#readme |
Source repo | head: git clone https://github.com/patrickt/fastsum |
Uploaded | by patrick_thomson at 2019-05-13T18:12:13Z |
Modules
[Index] [Quick Jump]
- Data
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
build-examples | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- fastsum-0.1.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees