{"id":16348915,"url":"https://github.com/sheaf/groups-generic","last_synced_at":"2025-10-26T02:30:33.774Z","repository":{"id":62436060,"uuid":"240595099","full_name":"sheaf/groups-generic","owner":"sheaf","description":"Derive Group instances using generics (Haskell library)","archived":false,"fork":false,"pushed_at":"2024-02-16T15:00:50.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T13:12:10.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sheaf.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-14T20:41:46.000Z","updated_at":"2022-12-03T14:33:56.000Z","dependencies_parsed_at":"2023-01-23T01:16:05.228Z","dependency_job_id":null,"html_url":"https://github.com/sheaf/groups-generic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheaf%2Fgroups-generic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheaf%2Fgroups-generic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheaf%2Fgroups-generic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheaf%2Fgroups-generic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheaf","download_url":"https://codeload.github.com/sheaf/groups-generic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238241460,"owners_count":19439768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T00:55:50.137Z","updated_at":"2025-10-26T02:30:33.486Z","avatar_url":"https://github.com/sheaf.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# groups-generic \u003ca href=\"https://hackage.haskell.org/package/groups-generic\" alt=\"Hackage\"\u003e\u003cimg src=\"https://img.shields.io/hackage/v/groups-generic.svg\" /\u003e\u003c/a\u003e\n\nExtends the [groups](https://hackage.haskell.org/package/groups) library with functionality for deriving `Group` instances using generics:\n\n```haskell\n{-# LANGUAGE DeriveGeneric #-}\n{-# LANGUAGE DerivingVia   #-}\n\nmodule Example where\n\n-- base\nimport Data.Semigroup\n  ( Sum(..), Product(..) )\nimport GHC.Generics\n  ( Generic )\n\n-- generic-data\nimport Generic.Data\n  ( GenericProduct(..) )\n\n-- groups\nimport Data.Group\n  ( Group(..) )\n\n-- groups-generic\nimport Data.Group.Generics\n  ( ) -- imports generic instances\n\n-----------------------------------------------------\n\ndata Point2D a = Point2D !a !a\n  deriving stock Generic\nnewtype Vector2D a = Vector2D { tip :: Point2D a }\n  deriving ( Semigroup, Monoid, Group )\n    via GenericProduct ( Point2D ( Sum a ) )\n\ndata MyRecord\n  = MyRecord\n  { field1 :: Sum Double\n  , field2 :: Product Double\n  , field3 :: ( Sum Int, Sum Int )\n  }\n  deriving stock Generic\n  deriving ( Semigroup, Monoid, Group )\n    via GenericProduct MyRecord\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheaf%2Fgroups-generic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheaf%2Fgroups-generic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheaf%2Fgroups-generic/lists"}