derive-enumerable 0.1.1.0 → 0.2.0
raw patch · 2 files changed
+9/−8 lines, 2 files
Files
derive-enumerable.cabal view
@@ -1,7 +1,7 @@ name: derive-enumerable-version: 0.1.1.0+version: 0.2.0 synopsis: Generic instances for enumerating complex data types-description: +description: Generalized equivalent to doing `[minBound..maxBound]` but on complex types. . > λ :m +Data.Enumerable.Generic@@ -13,16 +13,16 @@ > [Flag False 0,Flag True 0,Flag False 1, (..snip..) Flag False 255,Flag True 255] license: GPL-3 license-file: LICENSE-author: Maciej Goszczycki <mgoszcz2@gmail.com>-maintainer: Maciej Goszczycki <mgoszcz2@gmail.com>-copyright: (c) 2015 Maciej Goszczycki+author: Evan Cofsky <evan@theunixman.com>+maintainer: Evan Cofsky <evan@theunixman.com>+copyright: (c) 2015-2023 Maciej Goszczycki, Evan Cofsky category: Data, Generics build-type: Simple extra-source-files: README.md stability: experimental cabal-version: >=1.10-homepage: https://github.com/mgoszcz2/derive-enumerable-bug-reports: https://github.com/mgoszcz2/derive-enumerable/issues+homepage: https://github.com/theunixman/derive-enumerable+bug-reports: https://github.com/theunixman/derive-enumerable library exposed-modules: Data.Enumerable.Generic@@ -37,4 +37,4 @@ source-repository head type: git- location: git://github.com/mgoszcz2/derive-enumerable.git+ location: git@github.com:theunixman/derive-enumerable.git
src/Data/Enumerable/Generic.hs view
@@ -80,6 +80,7 @@ per :: x -> (x, Bool) default per :: (Generic x, GEnumerable (Rep x)) => x -> (x, Bool) per = first to . gper . from+ {-# MINIMAL per #-} -- | Symmetric `per`. Only enumerate if the carry boolean is `True` sper :: (x, Bool) -> (x, Bool)