groups-generic: Generically derive Group instances.

[ algebra, bsd3, library, math ] [ Propose Tags ]

Generically derive group instances:

{-# LANGUAGE DeriveGeneric, DerivingVia #-}
import GHC.Generics ( Generic, Generically (..) )

data MyRecord
  = MyRecord
  { field1 :: Sum Double
  , field2 :: Product Double
  , field3 :: ( Sum Int, Sum Int )
  deriving Generic
  deriving ( Semigroup, Monoid, Group )
    via Generically MyRecord


[Index] [Quick Jump]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,, (info)
Change log
Dependencies base (>=4.12 && <4.21), generic-data (>= && <0.10), groups (>= && <0.6) [details]
License BSD-3-Clause
Author Sam Derbyshire
Maintainer Sam Derbyshire
Revised Revision 1 made by sheaf at 2024-02-16T15:01:26Z
Category Algebra, Math
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by sheaf at 2022-12-04T15:25:39Z
Downloads 594 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-12-04 [all 1 reports]