fastsum

Version 0.2.0.0 revision 1 uploaded by patrick_thomson.

Package meta

Synopsis
A fast open-union type suitable for 100+ contained alternatives
Description

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.

Author
Rob Rix, Josh Vera, Allele Dev, Patrick Thomson
Bug reports
n/a
Category
Data
Copyright
Rob Rix, Josh Vera, Allele Dev, Patrick Thomson 2016-2018
Homepage
https://github.com/patrickt/fastsum#readme
Maintainer
patrickt@github.com
Package URL
n/a
Stability
n/a

Components