{"id":181841,"name":"first-class-patterns","ecosystem":"hackage","description":"This package implements a library of first class patterns. The\ninitial basis for this library was Morten Rhiger's \"Type-safe\npattern combinators\"; the patterns can be used in an almost\nidentical way to those of Morten Rhiger. In a series of blog\nposts at\nhttp://reinerp.wordpress.com/category/pattern-combinators/\nthe types of patterns were made more revealing using type\nfamilies, and a simpler implementation was used which avoids\nsome book-keeping.\n\nThe library reimplements most of Haskell's built-in\npattern matching facilities, plus some more. The pattern\nmatches of this library are lightweight: when GHC's\noptimisation is turned on, all overhead should be optimised\naway, leaving a standard Haskell pattern match.\n\nIf you're just reading the documentation for this library for\nthe first time, start with Data.Pattern.","homepage":"https://github.com/kowainik/first-class-patterns","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/kowainik/first-class-patterns","keywords_array":["bsd3","data","library","pattern","Propose Tags"],"namespace":null,"versions_count":10,"first_release_published_at":"2009-07-19T01:37:12.000Z","latest_release_published_at":"2013-07-30T17:29:22.000Z","latest_release_number":"0.3.2","latest_published_release_number":null,"last_synced_at":"2026-09-21T09:22:34.185Z","created_at":"2022-04-05T19:51:47.110Z","updated_at":"2026-09-22T18:10:10.616Z","registry_url":"https://hackage.haskell.org/package/first-class-patterns","install_command":"cabal install first-class-patterns","documentation_url":null,"metadata":{},"repo_metadata":{"id":59152364,"uuid":"136267091","full_name":"kowainik/first-class-patterns","owner":"kowainik","description":"First class patterns and pattern matching, using type families","archived":false,"fork":false,"pushed_at":"2020-11-06T17:52:40.000Z","size":51,"stargazers_count":18,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-09-16T06:54:44.059Z","etag":null,"topics":["first-class","haskell","pattern-matching","patterns"],"latest_commit_sha":null,"homepage":"https://kowainik.github.io/projects/first-class-patterns","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/kowainik.png","metadata":{"funding":{"ko_fi":"kowainik","github":["vrom911"]}},"created_at":"2018-06-06T03:31:20.000Z","updated_at":"2025-12-03T09:12:49.000Z","dependencies_parsed_at":"2022-09-13T11:00:57.635Z","dependency_job_id":null,"html_url":"https://github.com/kowainik/first-class-patterns","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kowainik/first-class-patterns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kowainik","download_url":"https://codeload.github.com/kowainik/first-class-patterns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37598998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-22T02:00:07.665Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"},"owner_record":{"login":"kowainik","name":"Kowainik","uuid":"37126241","kind":"organization","description":"Anyone can change the world. We do. :milky_way: ","email":"xrom.xkov@gmail.com","website":"https://kowainik.github.io/","location":"London, UK","twitter":"kowainik","company":null,"icon_url":"https://avatars.githubusercontent.com/u/37126241?v=4","repositories_count":48,"last_synced_at":"2023-02-28T08:50:20.155Z","metadata":{"has_sponsors_listing":false,"funding":{"ko_fi":"kowainik","github":["vrom911"]}},"html_url":"https://github.com/kowainik","funding_links":["https://ko-fi.com/kowainik","https://github.com/sponsors/vrom911"],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-11T12:36:31.522Z","updated_at":"2023-02-28T08:50:20.157Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kowainik","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kowainik/repositories"},"tags":[{"name":"v0.3.2.3","sha":"02d0b94a1007df5351c4f0568f35b845b176a6dd","kind":"tag","published_at":"2016-05-09T21:11:17.000Z","download_url":"https://codeload.github.com/kowainik/first-class-patterns/tar.gz/v0.3.2.3","html_url":"https://github.com/kowainik/first-class-patterns/releases/tag/v0.3.2.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/kowainik/first-class-patterns@v0.3.2.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2.3/manifests"},{"name":"v0.3.2.2","sha":"63a0235901e2acdee7c72ef30b9a91c602287c73","kind":"tag","published_at":"2015-05-28T21:51:07.000Z","download_url":"https://codeload.github.com/kowainik/first-class-patterns/tar.gz/v0.3.2.2","html_url":"https://github.com/kowainik/first-class-patterns/releases/tag/v0.3.2.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/kowainik/first-class-patterns@v0.3.2.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2.2/manifests"},{"name":"v0.3.2.1","sha":"083527fa9896455ee8658ba16fe4c09ca000797e","kind":"tag","published_at":"2014-05-12T20:20:53.000Z","download_url":"https://codeload.github.com/kowainik/first-class-patterns/tar.gz/v0.3.2.1","html_url":"https://github.com/kowainik/first-class-patterns/releases/tag/v0.3.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/kowainik/first-class-patterns@v0.3.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2.1/manifests"},{"name":"v0.3.2","sha":"78721a906580fd16768a8c5763105fbab3964156","kind":"tag","published_at":"2013-07-30T17:29:02.000Z","download_url":"https://codeload.github.com/kowainik/first-class-patterns/tar.gz/v0.3.2","html_url":"https://github.com/kowainik/first-class-patterns/releases/tag/v0.3.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/kowainik/first-class-patterns@v0.3.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/tags/v0.3.2/manifests"}]},"repo_metadata_updated_at":"2026-09-22T18:10:10.616Z","dependent_packages_count":0,"downloads":8960,"downloads_period":"total","dependent_repos_count":6,"rankings":{"downloads":17.326928510878776,"dependent_repos_count":23.41339361401526,"dependent_packages_count":19.27098050296694,"stargazers_count":18.05594800791184,"forks_count":37.08957332579825,"docker_downloads_count":null,"average":23.031364792314214},"purl":"pkg:hackage/first-class-patterns","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/hackage/first-class-patterns","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/hackage/first-class-patterns","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/hackage/first-class-patterns/dependencies","status":null,"funding_links":["https://ko-fi.com/kowainik","https://github.com/sponsors/vrom911"],"critical":false,"issue_metadata":{"last_synced_at":"2025-08-26T19:55:35.466Z","issues_count":6,"pull_requests_count":5,"avg_time_to_close_issue":182870.75,"avg_time_to_close_pull_request":7637.8,"issues_closed_count":4,"pull_requests_closed_count":5,"pull_request_authors_count":2,"issue_authors_count":1,"avg_comments_per_issue":0.0,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":5,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/kowainik%2Ffirst-class-patterns/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/first-class-patterns/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/first-class-patterns/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/first-class-patterns/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/first-class-patterns/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/first-class-patterns/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/first-class-patterns/codemeta","maintainers":[{"uuid":"ReinerPope","login":"ReinerPope","name":null,"email":null,"url":null,"packages_count":10,"html_url":"https://hackage.haskell.org/user/ReinerPope","role":null,"created_at":"2022-11-14T17:41:54.052Z","updated_at":"2022-11-14T17:41:54.052Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/maintainers/ReinerPope/packages"},{"uuid":"BrentYorgey","login":"BrentYorgey","name":null,"email":null,"url":null,"packages_count":60,"html_url":"https://hackage.haskell.org/user/BrentYorgey","role":null,"created_at":"2022-11-14T17:41:54.035Z","updated_at":"2022-11-14T17:41:54.035Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/maintainers/BrentYorgey/packages"},{"uuid":"vrom911","login":"vrom911","name":null,"email":null,"url":null,"packages_count":38,"html_url":"https://hackage.haskell.org/user/vrom911","role":null,"created_at":"2022-11-14T17:41:54.098Z","updated_at":"2022-11-14T17:41:54.098Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/maintainers/vrom911/packages"}]}