{"id":28284757,"url":"https://github.com/danieljharvey/purescript-refined","last_synced_at":"2026-01-30T11:25:54.597Z","repository":{"id":34638563,"uuid":"180363777","full_name":"danieljharvey/purescript-refined","owner":"danieljharvey","description":"Purescript refinement types with runtime checking","archived":false,"fork":false,"pushed_at":"2022-09-17T08:35:00.000Z","size":24,"stargazers_count":25,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-09T22:25:30.879Z","etag":null,"topics":["purescript","refined","type-level-programming"],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danieljharvey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-09T12:39:32.000Z","updated_at":"2025-01-17T10:27:35.000Z","dependencies_parsed_at":"2022-07-22T08:32:47.502Z","dependency_job_id":null,"html_url":"https://github.com/danieljharvey/purescript-refined","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/danieljharvey/purescript-refined","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljharvey%2Fpurescript-refined","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljharvey%2Fpurescript-refined/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljharvey%2Fpurescript-refined/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljharvey%2Fpurescript-refined/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieljharvey","download_url":"https://codeload.github.com/danieljharvey/purescript-refined/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljharvey%2Fpurescript-refined/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28911821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T08:15:08.179Z","status":"ssl_error","status_checked_at":"2026-01-30T08:14:31.507Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"}},"keywords":["purescript","refined","type-level-programming"],"created_at":"2025-05-21T17:14:47.618Z","updated_at":"2026-01-30T11:25:54.592Z","avatar_url":"https://github.com/danieljharvey.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purescript Refined\n\nA Purescript port of [Refined](http://hackage.haskell.org/package/refined).\n\nAllows one to create types that restrain the values inside, and automatically generate validators for them.\n\nFor instance:\n\n```haskell\ntype DiceRoll = Refined (FromTo D1 D6) Int\n\ninvalidDiceRoll :: Either RefinedError DiceRoll\ninvalidDiceRoll = refine 8\n-- invalidDiceRoll = Left (FromToError 1 6 8)\n\nvalidDiceRoll :: Either RefinedError DiceRoll\nvalidDiceRoll = refine 5\n-- validDiceRoll = Right DiceRoll\n\ndiceRollToInt :: DiceRoll -\u003e Int\ndiceRollToInt = unrefine\n```\n\nThis package also contains `EncodeJson` and `DecodeJson` instances for Argonaut so that JSON data can be validated, and `Arbitrary` instances for use with QuickCheck.\n\nDocumentation can be found on [Pursuit](https://pursuit.purescript.org/packages/purescript-refined/0.1.2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljharvey%2Fpurescript-refined","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljharvey%2Fpurescript-refined","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljharvey%2Fpurescript-refined/lists"}