The derive-enumerable package

[ Tags: data, generics, gpl, library ] [ Propose Tags ]

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

Versions 0.1.0.0, 0.1.1.0
Dependencies base (==4.7.*), data-default (>=0.5.0) [details]
License GPL-3
Copyright (c) 2015 Maciej Goszczycki
Author Maciej Goszczycki <mgoszcz2@gmail.com>
Maintainer Maciej Goszczycki <mgoszcz2@gmail.com>
Category Data, Generics
Home page https://github.com/mgoszcz2/derive-enumerable
Bug tracker https://github.com/mgoszcz2/derive-enumerable/issues
Source repository head: git clone git://github.com/mgoszcz2/derive-enumerable.git
Uploaded Wed May 27 23:02:50 UTC 2015 by mgoszcz2
Distributions NixOS:0.1.1.0
Downloads 293 total (4 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-05-27 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for derive-enumerable-0.1.1.0

[back to package description]

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]