The derive-enumerable package

[maintain]

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]

[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.1.0.0, 0.1.1.0
Dependenciesbase (==4.7.*), data-default (>=0.5.0) [details]
LicenseGPL-3
Copyright(c) 2015 Maciej Goszczycki
AuthorMaciej Goszczycki <mgoszcz2@gmail.com>
MaintainerMaciej Goszczycki <mgoszcz2@gmail.com>
Stabilityexperimental
CategoryData, Generics
Home pagehttps://github.com/mgoszcz2/derive-enumerable
Bug trackerhttps://github.com/mgoszcz2/derive-enumerable/issues
Source repositoryhead: git clone git://github.com/mgoszcz2/derive-enumerable.git
UploadedWed May 27 17:52:45 UTC 2015 by mgoszcz2

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for derive-enumerable-0.1.0.0

Derive-enumerable

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]