packages feed

groups-generic-0.2.0.0: groups-generic.cabal

cabal-version:  2.4
name:           groups-generic
version:        0.2.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:
  .
  > data MyRecord
  >   = MyRecord
  >   { field1 :: Sum Double
  >   , field2 :: Product Double
  >   , field3 :: ( Sum Int, Sum Int )
  >   }
  >   deriving Generic
  >   deriving ( Semigroup, Monoid, Group )
  >     via GenericProduct MyRecord

source-repository head
  type: git
  location: git://github.com/sheaf/generic-groups.git

library

  build-depends: 
      base
        >= 4.12 && < 4.17
    , generic-data
        >= 0.8.0.0 && < 0.10
    , groups
        >= 0.4.0.0 && < 0.6

  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