{"id":20090877,"url":"https://github.com/raehik/generic-type-asserts","last_synced_at":"2025-03-02T15:26:51.531Z","repository":{"id":231448753,"uuid":"781781059","full_name":"raehik/generic-type-asserts","owner":"raehik","description":"Structural assertions on generic data representations","archived":false,"fork":false,"pushed_at":"2024-04-13T00:56:36.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T03:38:23.171Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raehik.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-04T02:51:03.000Z","updated_at":"2024-04-10T22:13:30.000Z","dependencies_parsed_at":"2024-11-13T16:32:14.663Z","dependency_job_id":"fce7e636-b9e6-4a86-869e-f2da5028bc26","html_url":"https://github.com/raehik/generic-type-asserts","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"9594ecc1b389d2522d8ed736dff0eb09b3bd14e3"},"previous_names":["raehik/generic-data-asserts","raehik/generic-type-asserts"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raehik%2Fgeneric-type-asserts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raehik%2Fgeneric-type-asserts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raehik%2Fgeneric-type-asserts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raehik%2Fgeneric-type-asserts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raehik","download_url":"https://codeload.github.com/raehik/generic-type-asserts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241526505,"owners_count":19976949,"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-11-13T16:26:55.126Z","updated_at":"2025-03-02T15:26:51.498Z","avatar_url":"https://github.com/raehik.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[gdf-hackage]: https://hackage.haskell.org/package/generic-data-functions\n\n# generic-type-asserts\nStructural assertions on generic type representations (`GHC.Generic.Rep a`).\n\nSometimes, we want to write generics that only work on certain data types with a\ncertain shape e.g. non-sum types (single constructor). Achieving this is fairly\nstraightforward if we add a `TypeError` constraint on the relevant generic\nrepresentation unwrapping instance (here, the `(:+:)` constructor sum type).\n\nThis library effectively pulls those checks out of generic code and runs them by\nseparately. This way, we can simplify our generics, and make them more flexible\n(e.g. a user may choose whether to permit void types at compile time or not).\n\nThis began as a minor feature in my [generic-data-functions][gdf-hackage]\nlibrary.\n\n## License\nProvided under the MIT license. See `LICENSE` for license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraehik%2Fgeneric-type-asserts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraehik%2Fgeneric-type-asserts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraehik%2Fgeneric-type-asserts/lists"}