The latest version of derive-enumerable is 0.2.0-0.
derive-enumerable
Version 0.1.0.0 revision 0 uploaded by mgoszcz2.
Package meta
- Synopsis
- Generic instances for enumerating complex data types
- Description
Generalized equivalent to doing `[minBound..maxBound]` but on complex types.
λ :m +Data.Enumerable.Generic λ :set -XDeriveGeneric λ data Flag = Flag Bool Word8 deriving (Show, Generic) λ instance Enumerable Flag λ instance Default Flag where def = Flag False 0 λ allEnum :: [Flag] [Flag False 0,Flag True 0,Flag False 1, (..snip..) Flag False 255,Flag True 255]
- Author
- Maciej Goszczycki <mgoszcz2@gmail.com>
- Bug reports
- https://github.com/mgoszcz2/derive-enumerable/issues
- Category
- Data, Generics
- Copyright
- (c) 2015 Maciej Goszczycki
- Homepage
- https://github.com/mgoszcz2/derive-enumerable
- Maintainer
- Maciej Goszczycki <mgoszcz2@gmail.com>
- Package URL
- n/a
- Stability
- experimental