{"id":17703803,"url":"https://github.com/zudov/purescript-strongcheck-generics","last_synced_at":"2026-01-07T23:43:54.133Z","repository":{"id":58225694,"uuid":"41263724","full_name":"zudov/purescript-strongcheck-generics","owner":"zudov","description":"Generics for purescript-strongcheck","archived":false,"fork":false,"pushed_at":"2020-09-27T18:44:13.000Z","size":30,"stargazers_count":4,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T09:16:08.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zudov.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}},"created_at":"2015-08-23T19:25:27.000Z","updated_at":"2017-02-08T09:03:59.000Z","dependencies_parsed_at":"2022-08-31T04:10:16.930Z","dependency_job_id":null,"html_url":"https://github.com/zudov/purescript-strongcheck-generics","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-strongcheck-generics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-strongcheck-generics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-strongcheck-generics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-strongcheck-generics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zudov","download_url":"https://codeload.github.com/zudov/purescript-strongcheck-generics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413242,"owners_count":20773054,"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-24T21:06:00.526Z","updated_at":"2026-01-07T23:43:54.095Z","avatar_url":"https://github.com/zudov.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-strongcheck-generics\n\n[![purescript-strongcheck-generics on Pursuit](https://pursuit.purescript.org/packages/purescript-strongcheck-generics/badge)](http://pursuit.purescript.org/packages/purescript-strongcheck-generics)\n[![Latest release](https://img.shields.io/bower/v/purescript-strongcheck-generics.svg)](https://github.com/zudov/purescript-strongcheck-generics/releases)\n[![Build Status](https://travis-ci.org/zudov/purescript-strongcheck-generics.svg?branch=master)](https://travis-ci.org/zudov/purescript-strongcheck-generics)\n\nGeneric deriving for `Arbitrary`/`CoArbitrary`, and generation of `GenericSpine`/`GenericSignature`.\n\n**Warning:** It was noticed that generating a spine for deeply recursive data structures (particularly those\nthat include arrays of themselves) can hang running indefinetely. See [issue 5](https://github.com/zudov/purescript-strongcheck-generics/issues/5) for details.\n\n## Installation\n\n```shell\nbower install purescript-strongcheck-generics\n```\n\n## Example\n\n```purescript\nmodule Main where\n\nimport Prelude\n\nimport Data.Generic\n\nimport Test.StrongCheck\nimport Test.StrongCheck.Gen\nimport Test.StrongCheck.Generic\n\ndata Tree a = Leaf | Branch { value :: a, kids :: Array (Tree a) }\n\nderive instance genericTree :: (Generic a) =\u003e Generic (Tree a)\n\ninstance showTree :: (Show a, Generic a) =\u003e Show (Tree a) where\n  show = gShow\n\nmain = do\n  showSample (gArbitrary :: Gen (Tree Int))\n```\n\n[Output](https://travis-ci.org/zudov/purescript-strongcheck-generics/builds/91160401#L733)\n\n## Documentation\n\n- [Test.StrongCheck.Generic](docs/Test/StrongCheck/Generic.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzudov%2Fpurescript-strongcheck-generics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzudov%2Fpurescript-strongcheck-generics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzudov%2Fpurescript-strongcheck-generics/lists"}