logo
首页技术栈工具库讨论
enummapset-th

enummapset-th

This package wraps IntSet and IntMap from containers, and provides fast sets and maps keyed on any data type with a well-behaved Enum instance. Useful for derived Enums, newtype'd Ints, or any data type that can be packed into an Int: just implement fromEnum and toEnum. The boilerplate is generated using Template Haskell, so unlike enummapset it's easier to maintain and keep up-to-date with containers. On the downside, it's less portable. Note that Data.EnumMap.Lazy and Data.EnumMap.Strict provide distinct newtype wrappers, and their respective Functor instances behave as expected, unlike that of IntMap which is alway lazy.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install enummapset-th
查看
标签
根据用户添加的标签生成
暂无标签