{"id":16336470,"url":"https://github.com/justinwoo/purescript-shoronpo","last_synced_at":"2026-03-18T19:03:01.880Z","repository":{"id":58225673,"uuid":"135353836","full_name":"justinwoo/purescript-shoronpo","owner":"justinwoo","description":"A library for type-level Symbol formatting with other Symbols, e.g. intercalated record labels","archived":false,"fork":false,"pushed_at":"2021-12-15T13:10:24.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T21:21:14.657Z","etag":null,"topics":["formatting","purescript","symbols","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}},"created_at":"2018-05-29T21:16:00.000Z","updated_at":"2021-12-15T13:10:00.000Z","dependencies_parsed_at":"2022-08-31T05:21:45.871Z","dependency_job_id":null,"html_url":"https://github.com/justinwoo/purescript-shoronpo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/justinwoo/purescript-shoronpo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-shoronpo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-shoronpo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-shoronpo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-shoronpo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinwoo","download_url":"https://codeload.github.com/justinwoo/purescript-shoronpo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-shoronpo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: 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":["formatting","purescript","symbols","type-level"],"created_at":"2024-10-10T23:44:16.848Z","updated_at":"2026-01-25T00:32:07.028Z","avatar_url":"https://github.com/justinwoo.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PureScript-Shoronpo\n\nA library for type-level Symbol formatting with other Symbols, e.g. intercalated record labels.\n\n![](https://i.imgur.com/EtAGHnK.jpg)\n\nWho doesn't love shoronpo/xiaolongbao?\n\nYou might want to use this together with [Jajanmen](https://github.com/justinwoo/purescript-jajanmen) for amazing results (example to be made, but imagine you had a record for select query results and wanted to use its labels in your query template).\n\n## Usage\n\nDefine as separate terms or use inline:\n\n```purs\ntype MyRecord =\n  { a :: Int\n  , b :: String\n  , c :: Unit\n  }\n\n-- inferred type:\nlabels :: SProxy \"a, b, c\"\nlabels =\n  S.intercalateRecordLabels\n    (Proxy :: Proxy MyRecord)\n    (SProxy :: SProxy \", \")\n\n-- inferred type:\nformatted :: SProxy \"my labels: a, b, c\"\nformatted =\n  S.formatSymbol\n    (SProxy :: SProxy \"my labels: {labels}\")\n    { labels }\n```\n\nThen put it to work:\n\n```purs\nmain :: Effect Unit\nmain = do\n  let\n    myLabels =\n      S.intercalateRecordLabels\n        (Proxy :: Proxy { apple :: Int, banana :: String })\n        (SProxy :: SProxy \", \")\n    myFormatted =\n      S.formatSymbol\n        (SProxy :: SProxy \"myLabels: {myLabels}\")\n        { myLabels }\n\n  assertEqual\n    { actual: reflectSymbol myFormatted\n    , expected: \"myLabels: apple, banana\"\n    }\n  log $ reflectSymbol myLabels\n  log $ reflectSymbol myFormatted\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-shoronpo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinwoo%2Fpurescript-shoronpo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-shoronpo/lists"}