{"id":16336453,"url":"https://github.com/justinwoo/purescript-bismuth","last_synced_at":"2025-11-03T07:30:26.330Z","repository":{"id":58242396,"uuid":"113075011","full_name":"justinwoo/purescript-bismuth","owner":"justinwoo","description":"A library for generating flow type signatures for direct interop between PureScript and Flow. Similar to OhYes","archived":false,"fork":false,"pushed_at":"2017-12-22T22:17:28.000Z","size":13,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-27T04:06:45.176Z","etag":null,"topics":["codegen","flowtype","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":"2017-12-04T17:45:18.000Z","updated_at":"2021-12-01T13:52:34.000Z","dependencies_parsed_at":"2022-08-31T00:40:57.158Z","dependency_job_id":null,"html_url":"https://github.com/justinwoo/purescript-bismuth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bismuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bismuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bismuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-bismuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinwoo","download_url":"https://codeload.github.com/justinwoo/purescript-bismuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412505,"owners_count":19634016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["codegen","flowtype","purescript"],"created_at":"2024-10-10T23:44:12.368Z","updated_at":"2025-11-03T07:30:26.276Z","avatar_url":"https://github.com/justinwoo.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bismuth\n\n[![Build Status](https://travis-ci.org/justinwoo/purescript-bismuth.svg?branch=master)](https://travis-ci.org/justinwoo/purescript-bismuth)\n\nA library for generating flow type signatures for direct interop between PureScript and Flow. Similar to [OhYes](https://github.com/justinwoo/purescript-ohyes)\n\n## Tl;dr\n\n```hs\ntype A =\n  { a :: Number\n  , b :: String\n  , c :: { d :: String }\n  , e :: Array String\n  , f :: Nullable String\n  , g :: Number -\u003e Number -\u003e Number\n  , h :: Fn2 Number Number Number\n  , i :: Fn2 Number (Fn2 Number Number Number) Number\n  , l :: Foreign\n  , k :: StrMap Number\n  }\n\ntype VariantTest = Variant\n  ( a :: String\n  , b :: Number\n  , c :: Boolean\n  )\n```\n\n```js\n//@flow\nexport type A = {\n  a: number,\n  b: string,\n  c: { d: string },\n  e: string[],\n  f: string | null,\n  g: (a: number) =\u003e (a: number) =\u003e number,\n  h: (a: number, b: number) =\u003e number,\n  i: (a: number, b: (a: number, b: number) =\u003e number) =\u003e number,\n  k: { [key: string]: number },\n  l: any\n};\nexport type VariantTest =\n  | { type: \"a\", value: string }\n  | { type: \"b\", value: number }\n  | { type: \"c\", value: boolean };\n```\n\n## Example\n\nSee and CONTRIBUTE to the [example here](https://github.com/justinwoo/bismuth-example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-bismuth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinwoo%2Fpurescript-bismuth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-bismuth/lists"}