{"id":18819662,"url":"https://github.com/xodio/hm-parser","last_synced_at":"2025-04-13T23:33:29.395Z","repository":{"id":51862867,"uuid":"81758109","full_name":"xodio/hm-parser","owner":"xodio","description":"A parser for Hidnley Milner notations","archived":false,"fork":false,"pushed_at":"2022-12-06T15:19:56.000Z","size":62,"stargazers_count":23,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T00:11:18.735Z","etag":null,"topics":["fp","functional-programming","hindley-milner","parser"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xodio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-12T21:22:07.000Z","updated_at":"2023-07-20T16:30:47.000Z","dependencies_parsed_at":"2023-01-23T14:00:13.674Z","dependency_job_id":null,"html_url":"https://github.com/xodio/hm-parser","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/xodio%2Fhm-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xodio%2Fhm-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xodio%2Fhm-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xodio%2Fhm-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xodio","download_url":"https://codeload.github.com/xodio/hm-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248797312,"owners_count":21163114,"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":["fp","functional-programming","hindley-milner","parser"],"created_at":"2024-11-08T00:24:22.281Z","updated_at":"2025-04-13T23:33:26.584Z","avatar_url":"https://github.com/xodio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nHindley Milner Parser\n=====================\n\nThis is a parser for Haskell-alike Hindley Milner signatures with some sugar\nadded to support JS-specific things like methods.\n\nIt is a drop-in replacement for\n[hindley-milner-parser-js](https://github.com/kedashoe/hindley-milner-parser-js)\npackage which is based on [mona](https://github.com/zkat/mona). Mona has few\nproblems: it is very slow if used with Mocha test runner and it imports\n`babel-polyfill` by hard-code what makes it impossible to use within projects\nthat use another version of `babel-polyfill`.\n\nUsage\n-----\n\nInstall with:\n\n    $ yarn add hm-parser\n    # or\n    $ npm install hm-parser\n\nThen:\n\n```javascript\n\nHMP = require('hm-parser');\n\nHMP.parse('hello :: a -\u003e Maybe a');\n\n// returns:\n// {\n//   name: 'hello',\n//   constraints: [],\n//   type:\n//     {type: 'function', text: '', children: [\n//       {type: 'typevar', text: 'a', children: []},\n//       {type: 'typeConstructor', text: 'Maybe', children: [\n//         {type: 'typevar', text: 'a', children: []}]}]}\n```\n\nSee [tests](test/test.js) for more examples.\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxodio%2Fhm-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxodio%2Fhm-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxodio%2Fhm-parser/lists"}