{"id":16336505,"url":"https://github.com/justinwoo/purescript-bibimbap","last_synced_at":"2026-02-24T03:31:42.713Z","repository":{"id":58225338,"uuid":"150944563","full_name":"justinwoo/purescript-bibimbap","owner":"justinwoo","description":"The flip side of Chirashi, simply storing sum type values and retrieving them by using the constructor name as a test value, by using Generic.Rep to get constructor names from a sum type definition.","archived":false,"fork":false,"pushed_at":"2018-09-30T07:53:01.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-28T18:34:11.004Z","etag":null,"topics":["error","generics-rep","purescript"],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/justinwoo.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":"2018-09-30T07:49:47.000Z","updated_at":"2018-09-30T07:52:56.000Z","dependencies_parsed_at":"2022-08-31T07:51:51.481Z","dependency_job_id":null,"html_url":"https://github.com/justinwoo/purescript-bibimbap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/justinwoo/purescript-bibimbap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bibimbap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bibimbap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bibimbap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bibimbap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinwoo","download_url":"https://codeload.github.com/justinwoo/purescript-bibimbap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bibimbap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29770766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T03:15:54.600Z","status":"ssl_error","status_checked_at":"2026-02-24T03:15:54.143Z","response_time":75,"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":["error","generics-rep","purescript"],"created_at":"2024-10-10T23:44:23.786Z","updated_at":"2026-02-24T03:31:42.689Z","avatar_url":"https://github.com/justinwoo.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purescript-Bibimbap\n\n[![Build Status](https://travis-ci.org/justinwoo/purescript-bibimbap.svg?branch=master)](https://travis-ci.org/justinwoo/purescript-bibimbap)\n\n[Docs on Pursuit](https://pursuit.purescript.org/packages/purescript-bibimbap)\n\nThe flip side of [Chirashi](https://github.com/justinwoo/purescript-chirashi), simply storing sum type values and retrieving them by using the constructor name as a test value, by using `Generic.Rep` to get constructor names from a sum type definition.\n\nWorks by subclassing Error.\n\n![](https://i.imgur.com/LG0UqbA.jpg)\n\n## Usage\n\n```purs\ndata ErrorGenericSum\n  = Apple\n  | Banana { info :: String }\n  | Cherry Int Int Int\nderive instance genericErrorGenericSum :: GR.Generic ErrorGenericSum _\n\nmain = do\n  let\n    knownGenericSum :: ErrorGenericSum\n    knownGenericSum = Banana { info: \"hello\" }\n    knownError = Bibimbap.mkGenericSumError knownGenericSum\n    resultKnownError = Bibimbap.readGenericSum knownError\n\n  Assert.assertEqual\n    { expected: Just knownGenericSum\n    , actual: resultKnownError\n    }\n```\n\nSee tests for more examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-bibimbap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinwoo%2Fpurescript-bibimbap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-bibimbap/lists"}