{"id":16486999,"url":"https://github.com/ethe/typer","last_synced_at":"2026-02-19T06:02:18.423Z","repository":{"id":144424536,"uuid":"82253933","full_name":"ethe/typer","owner":"ethe","description":"A minimal Hindley-Milner type inferencer implementation","archived":false,"fork":false,"pushed_at":"2017-02-24T03:12:53.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T22:07:28.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/ethe.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":"2017-02-17T03:38:50.000Z","updated_at":"2024-09-19T15:55:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7939617-7583-4d78-8d3f-4df9f3f2e9f5","html_url":"https://github.com/ethe/typer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ethe/typer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethe%2Ftyper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethe%2Ftyper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethe%2Ftyper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethe%2Ftyper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethe","download_url":"https://codeload.github.com/ethe/typer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethe%2Ftyper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29604552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T05:11:50.834Z","status":"ssl_error","status_checked_at":"2026-02-19T05:11:38.921Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-10-11T13:31:52.892Z","updated_at":"2026-02-19T06:02:18.342Z","avatar_url":"https://github.com/ethe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typer\nA minimal type inferencer\n\n```\n ↳ python test.py\nUnify Type 1 and Type 2:\n\nType 1  -\u003e (* ('a1 -\u003e 'a2) (list 'a3)) -\u003e list 'a2\nType 2  -\u003e (* ('a3 -\u003e 'a4) (list 'a3)) -\u003e 'a5\n\nSlot map: {'a2: 'a4, 'a1: 'a3, 'a5: list 'a4}\n\nUnifed result:  apply 1 -\u003e (* ('a3 -\u003e 'a4) (list 'a3)) -\u003e list 'a4\nUnifed result:  apply 2 -\u003e (* ('a3 -\u003e 'a4) (list 'a3)) -\u003e list 'a4\n\nSome inference examples are defined in test.py, there is inference result:\n\n{'+': int -\u003e int -\u003e int,\n '0': int,\n '1': int,\n 'call': forall 'a 'b. ('a -\u003e 'b) -\u003e 'a -\u003e 'b,\n 'car': forall 'a. (list 'a) -\u003e 'a,\n 'cdr': forall 'a. (list 'a) -\u003e list 'a,\n 'cons': forall 'a. 'a -\u003e (list 'a) -\u003e list 'a,\n 'crz': forall 'a 'b 'c. 'a -\u003e 'b -\u003e 'c -\u003e 'c,\n 'empty?': forall 'a. (list 'a) -\u003e bool,\n 'hold': forall 'a. 'a -\u003e thunk 'a,\n 'if': forall 'a. bool -\u003e (thunk 'a) -\u003e (thunk 'a) -\u003e 'a,\n 'length': forall 'a. (list 'a) -\u003e int,\n 'map': forall 'a 'b. ('b -\u003e 'a) -\u003e (list 'b) -\u003e list 'a,\n 'newlist': forall 'a. unit -\u003e list 'a,\n 'nothing': unit,\n 'seq': forall 'a 'b. 'a -\u003e 'b -\u003e 'b,\n 'sum': forall. (list int) -\u003e int}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethe%2Ftyper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethe%2Ftyper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethe%2Ftyper/lists"}