logo
首页技术栈工具库讨论
fastsum

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.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
GitHub iconpatrickt/fastsum85
HACKAGE
carbal install fastsum
查看
标签
根据用户添加的标签生成
暂无标签