groups-generic: Generically derive Group instances.

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] [Publish]

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

Properties

Versions 0.1.0.0, 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.1.0
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
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
Uploaded by sheaf at 2020-02-16T12:02:00Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees