{"id":19729345,"url":"https://github.com/wdamron/poly","last_synced_at":"2025-04-30T01:31:55.762Z","repository":{"id":57552105,"uuid":"179229020","full_name":"wdamron/poly","owner":"wdamron","description":"Hindley-Milner type system with extensible records and variants, implemented in Go","archived":false,"fork":false,"pushed_at":"2020-11-21T02:47:49.000Z","size":189,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T21:34:06.073Z","etag":null,"topics":["algorithm-w","hindley-milner","type-inference","type-system","type-theory"],"latest_commit_sha":null,"homepage":"","language":"Go","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/wdamron.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":"2019-04-03T06:55:26.000Z","updated_at":"2025-03-24T01:18:48.000Z","dependencies_parsed_at":"2022-09-20T12:55:45.378Z","dependency_job_id":null,"html_url":"https://github.com/wdamron/poly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Fpoly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Fpoly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Fpoly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Fpoly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdamron","download_url":"https://codeload.github.com/wdamron/poly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251611562,"owners_count":21617420,"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":["algorithm-w","hindley-milner","type-inference","type-system","type-theory"],"created_at":"2024-11-12T00:11:40.256Z","updated_at":"2025-04-30T01:31:55.455Z","avatar_url":"https://github.com/wdamron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# package poly\n\n```go\nimport \"github.com/wdamron/poly\"\n```\n\n`poly` provides inference for a polymorphic type-system with extensible records and variants.\n\nThe type-system is an extension of [Hindley-Milner](https://en.wikipedia.org/wiki/Hindley–Milner_type_system) based on Daan Leijen's paper: [Extensible Records with Scoped Labels (Microsoft Research)](https://www.microsoft.com/en-us/research/publication/extensible-records-with-scoped-labels/).\n\nThe core of the implementation is based on an [OCaml library](https://github.com/tomprimozic/type-systems/) by Tom Primozic.\n\n## Supported Features\n\n* Extensible records and variants with scoped labels\n* Generic type classes, constructor classes, and parametric overloading\n* Limited/explicit (type class) subtyping with multiple inheritance\n* Mutually-recursive (generic) function expressions within grouped let bindings\n* Mutually-recursive (generic) data types\n* Transparently aliased (generic) types\n* Control-flow graph expressions\n* Mutable references with the [value restriction](https://en.wikipedia.org/wiki/Value_restriction)\n* Size-bound type variables\n\n## More Info\n\n* Docs (Godoc)\n\t* [`poly`](https://godoc.org/github.com/wdamron/poly)\n\t* [`poly/ast`](https://godoc.org/github.com/wdamron/poly/ast)\n\t* [`poly/types`](https://godoc.org/github.com/wdamron/poly/types)\n* [extensible_rows2 (OCaml implementation)](https://github.com/tomprimozic/type-systems/tree/master/extensible_rows2)\n* [Extensible Records with Scoped Labels (Leijen, 2005)](https://www.microsoft.com/en-us/research/publication/extensible-records-with-scoped-labels/)\n* [Efficient Generalization with Levels (Oleg Kiselyov)](http://okmij.org/ftp/ML/generalization.html#levels)\n* [Hindley-Milner type system (Wikipedia)](https://en.wikipedia.org/wiki/Hindley–Milner_type_system)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdamron%2Fpoly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdamron%2Fpoly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdamron%2Fpoly/lists"}