{"id":13772736,"url":"https://github.com/gcanti/fp-ts-laws","last_synced_at":"2025-05-12T14:32:25.405Z","repository":{"id":48490368,"uuid":"175948208","full_name":"gcanti/fp-ts-laws","owner":"gcanti","description":"fp-ts type class laws for property based testing","archived":false,"fork":false,"pushed_at":"2023-10-24T17:13:32.000Z","size":152,"stargazers_count":81,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T21:09:41.021Z","etag":null,"topics":["fp-ts","property-based-testing"],"latest_commit_sha":null,"homepage":"https://gcanti.github.io/fp-ts-laws/","language":"TypeScript","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/gcanti.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-03-16T08:50:45.000Z","updated_at":"2024-09-02T07:27:10.000Z","dependencies_parsed_at":"2024-01-15T03:58:05.848Z","dependency_job_id":null,"html_url":"https://github.com/gcanti/fp-ts-laws","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.2666666666666667,"last_synced_commit":"26e7de4f2b28a2981205c2583b0183b9fc07ff53"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcanti%2Ffp-ts-laws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcanti%2Ffp-ts-laws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcanti%2Ffp-ts-laws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcanti%2Ffp-ts-laws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcanti","download_url":"https://codeload.github.com/gcanti/fp-ts-laws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253618003,"owners_count":21936901,"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":["fp-ts","property-based-testing"],"created_at":"2024-08-03T17:01:07.347Z","updated_at":"2025-05-12T14:32:25.373Z","avatar_url":"https://github.com/gcanti.png","language":"TypeScript","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/gcanti/fp-ts-laws/actions\"\u003e\n    \u003cimg src=\"https://github.com/gcanti/fp-ts-laws/actions/workflows/main.yml/badge.svg?branch=master\" alt=\"build status\" height=\"20\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n[fp-ts](https://github.com/gcanti/fp-ts) type class laws for property based testing\n\nUsage of [fast-check](https://github.com/dubzzz/fast-check) is required.\n\n# Example\n\n```ts\nimport * as laws from 'fp-ts-laws'\nimport * as fc from 'fast-check'\n\nimport { Semigroup } from 'fp-ts/Semigroup'\nimport { eqString } from 'fp-ts/Eq'\n\ndescribe('my semigroup instance', () =\u003e {\n  it('should test Semigroup laws', () =\u003e {\n    const semigroupSpace: Semigroup\u003cstring\u003e = {\n      concat: (x, y) =\u003e x + ' ' + y\n    }\n    laws.semigroup(semigroupSpace, eqString, fc.string())\n  })\n})\n```\n\nFor other examples check out the [tests](test/index.ts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcanti%2Ffp-ts-laws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcanti%2Ffp-ts-laws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcanti%2Ffp-ts-laws/lists"}