The derive-enumerable package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[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
Change logNone available
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>
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]