{"id":16337032,"url":"https://github.com/justinwoo/purescript-biang","last_synced_at":"2026-01-25T00:01:38.195Z","repository":{"id":149405691,"uuid":"143275443","full_name":"justinwoo/purescript-biang","owner":"justinwoo","description":"A library for converting generic reps of Sum and Product to row types, for whatever convenient usage needs at the type level.","archived":false,"fork":false,"pushed_at":"2018-08-02T09:52:16.000Z","size":3,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T00:45:06.752Z","etag":null,"topics":["purescript","type-level"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-02T09:50:15.000Z","updated_at":"2018-08-24T19:40:48.000Z","dependencies_parsed_at":"2023-09-03T22:01:38.500Z","dependency_job_id":null,"html_url":"https://github.com/justinwoo/purescript-biang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/justinwoo/purescript-biang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-biang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-biang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-biang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-biang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinwoo","download_url":"https://codeload.github.com/justinwoo/purescript-biang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-biang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"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","type-level"],"created_at":"2024-10-10T23:45:40.034Z","updated_at":"2026-01-25T00:01:38.152Z","avatar_url":"https://github.com/justinwoo.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purescript-Biang\n\n[![Build Status](https://travis-ci.org/justinwoo/purescript-biang.svg?branch=master)](https://travis-ci.org/justinwoo/purescript-biang)\n\nA library for converting generic reps of Sum and Product to row types, for whatever convenient usage needs at the type level.\n\nBiang, like the noodles\n\n![](https://i.imgur.com/bvqiF1I.png)\n\n## Usage\n\n```purs\ndata Fruit = Apple | Banana String | Kiwi Int\nderive instance genericFruit :: Generic Fruit _\n\n-- inferred type:\nfruitRow :: RProxy\n  ( \"Apple\" :: NoArguments\n  , \"Banana\" :: Argument String\n  , \"Kiwi\" :: Argument Int\n  )\nfruitRow = sumToRow (Proxy :: Proxy Fruit)\n\ndata Thing = Thing Int String Boolean\nderive instance genericThing :: Generic Thing _\n\n-- inferred type:\nthingRow :: RProxy\n  ( a :: Int\n  , b :: String\n  , c :: Boolean\n  )\nthingRow = productToRow (Proxy :: Proxy Thing)\n```\n\nSee the [API Docs](https://pursuit.purescript.org/packages/purescript-biang/) or the [tests](test/Main.purs) for usage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-biang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinwoo%2Fpurescript-biang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-biang/lists"}