Popularity
1.4
Stable
Activity
0.0
Stable
1
1
1

Monthly Downloads: 8
Programming language: Haskell
License: GNU General Public License v3.0 only
Tags: Data     Development     Generics     Derive    

derive-enumerable alternatives and similar packages

Based on the "derive" category.
Alternatively, view derive-enumerable alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of derive-enumerable or a related project?

Add another 'derive' Package

README

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]