{"id":16983112,"url":"https://github.com/rtsao/ppx_deriving_comparison","last_synced_at":"2025-03-22T00:26:58.309Z","repository":{"id":146089958,"uuid":"157125733","full_name":"rtsao/ppx_deriving_comparison","owner":"rtsao","description":"ppx to generate a function that compares variant constructors","archived":false,"fork":false,"pushed_at":"2018-11-11T22:07:52.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T18:45:27.085Z","etag":null,"topics":["ppx"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtsao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-11T22:06:08.000Z","updated_at":"2019-12-26T13:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd89e50e-4d0f-4d5d-9ddf-8a2e79055e58","html_url":"https://github.com/rtsao/ppx_deriving_comparison","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/rtsao%2Fppx_deriving_comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsao%2Fppx_deriving_comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsao%2Fppx_deriving_comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtsao%2Fppx_deriving_comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtsao","download_url":"https://codeload.github.com/rtsao/ppx_deriving_comparison/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244889322,"owners_count":20526983,"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":["ppx"],"created_at":"2024-10-14T02:27:44.103Z","updated_at":"2025-03-22T00:26:58.290Z","avatar_url":"https://github.com/rtsao.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ppx_deriving_comparison\n\nGenerates a function that compares value constructors.\n\n```reason\n[@deriving comparison]\ntype foo =\n  | A(bool)\n  | B\n  | C;\n\nlet () = {\n  assert(foo_is_same_constructor(A(true), A(false)));\n  assert(foo_is_same_constructor(B, B));\n  assert(! foo_is_same_constructor(B, C));\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtsao%2Fppx_deriving_comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtsao%2Fppx_deriving_comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtsao%2Fppx_deriving_comparison/lists"}