{"id":23106925,"url":"https://github.com/byteally/hedgehog-gen","last_synced_at":"2025-07-16T05:04:41.290Z","repository":{"id":62436113,"uuid":"241636542","full_name":"byteally/hedgehog-gen","owner":"byteally","description":"Customizable Gen for ADT using Generics","archived":false,"fork":false,"pushed_at":"2022-08-10T08:48:00.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-25T02:19:45.312Z","etag":null,"topics":["haskell","hedgehog","property-testing"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/byteally.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}},"created_at":"2020-02-19T14:04:06.000Z","updated_at":"2022-08-10T08:48:04.000Z","dependencies_parsed_at":"2022-11-01T21:16:50.555Z","dependency_job_id":null,"html_url":"https://github.com/byteally/hedgehog-gen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byteally/hedgehog-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteally%2Fhedgehog-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteally%2Fhedgehog-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteally%2Fhedgehog-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteally%2Fhedgehog-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteally","download_url":"https://codeload.github.com/byteally/hedgehog-gen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteally%2Fhedgehog-gen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265483213,"owners_count":23774167,"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":["haskell","hedgehog","property-testing"],"created_at":"2024-12-17T01:11:53.537Z","updated_at":"2025-07-16T05:04:41.228Z","avatar_url":"https://github.com/byteally.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hedgehog-gen\nCustomizable Gen for ADT using Generics\n\n[![Hackage](https://img.shields.io/hackage/v/hedgehog-gen.svg?logo=haskell)](https://hackage.haskell.org/package/hedgehog-gen)\n\n## Tutorial\n\n```haskell\n\nimport Hedgehog\nimport qualified Hedgehog.Gen as Gen\nimport qualified Hedgehog.Range as Range\nimport Hedgehog.Gen.Generic\nimport Data.Function\n\ndata Gender = Male | Female | Other\n  deriving (Show, Eq, Generic)\n\ndata User = User\n  { name :: Text\n  , age :: Word\n  , gender :: Gender\n  } deriving (Show, Eq, Generic)\n\nuserGen1 :: Hedgehog.Gen User\nuserGen1 = mkGen emptyGens\n\n\nuserGen2 :: Hedgehog.Gen User\nuserGen2 = mkGen $ emptyGens\n           \u0026 byField @User @\"age\" (Gen.word (Range.constant 1 120))\n           \u0026 byPos @User @1 (Gen.element [\"foo\", \"bar\", \"baz\"])\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteally%2Fhedgehog-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteally%2Fhedgehog-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteally%2Fhedgehog-gen/lists"}