groups-generic-0.3.0.0: groups-generic.cabal
cabal-version: 2.4
name: groups-generic
version: 0.3.0.0
synopsis: Generically derive Group instances.
category: Algebra, Math
license: BSD-3-Clause
build-type: Simple
author: Sam Derbyshire
maintainer: Sam Derbyshire
homepage: https://github.com/sheaf/groups-generic
bug-reports: https://github.com/sheaf/groups-generic/issues
extra-source-files:
changelog.md
description:
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
source-repository head
type: git
location: git://github.com/sheaf/generic-groups.git
library
build-depends:
base
>= 4.12 && < 4.18
, groups
>= 0.4.0.0 && < 0.6
if impl(ghc < 9.3)
build-depends:
generic-data
>= 0.8.0.0 && < 0.10
hs-source-dirs:
src
exposed-modules:
Data.Group.Generics
ghc-options:
-Wall
-Wcompat
-fwarn-missing-local-signatures
-fwarn-incomplete-uni-patterns
-fwarn-missing-deriving-strategies
default-language:
Haskell2010