groups-generic: Generically derive Group instances.
Generically derive group instances:
data MyRecord
= MyRecord
{ field1 :: Sum Double
, field2 :: Product Double
, field3 :: ( Sum Int, Sum Int )
}
deriving Generic
deriving ( Semigroup, Monoid, Group )
via GenericProduct MyRecord
Downloads
- groups-generic-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.1.0 (info) |
|---|---|
| Change log | changelog.md |
| Dependencies | base (>=4.12 && <4.15), generic-data (>=0.8.0.0 && <0.9), groups (>=0.4.0.0 && <0.5) [details] |
| License | BSD-3-Clause |
| Author | Sam Derbyshire |
| Maintainer | Sam Derbyshire |
| Uploaded | by sheaf at 2020-02-16T12:05:14Z |
| Category | Algebra, Math |
| Home page | https://github.com/sheaf/groups-generic |
| Bug tracker | https://github.com/sheaf/groups-generic/issues |
| Source repo | head: git clone git://github.com/sheaf/generic-groups.git |
| Distributions | NixOS:0.3.1.0 |
| Downloads | 782 total (13 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2020-02-16 [all 1 reports] |