An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

fastsum

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.

Ecosystem
hackage.haskell.org
Latest Release
0.2.0.0
about 4 years ago
Versions
4
Downloads
3,696 total
Dependent Repos
8
Links
Registry hackage.haskell.org
Source Repository
Homepage Homepage
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/fastsum
spec
License BSD-3-Clause
First Release almost 8 years ago
Last Synced 4 days ago
Repository
Stars 100 on GitHub
Forks 7 on GitHub
Commits 58
Committers 5
Avg per Author 11.6
DDS 0.207