A parser for Hindley-Milner type signatures, designed as a drop-in replacement for hindley-milner-parser-js but without its babel-polyfill dependency and performance issues. Version 0.1.5 is the latest stable release, with infrequent updates. It supports Haskell-like syntax with JS-specific sugar for methods. Faster and more compatible with modern tooling than the original.
npm install hm-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a Hindley-Milner type signature and outputs the AST.
Use named import or namespace import as shown in imports.
Ensure input follows Hindley-Milner syntax supported by the parser.
Use const { parse } = require('hm-parser') instead of const parse = require('hindley-milner-parser-js').Use const { parse } = require('hm-parser') or import { parse } from 'hm-parser'.Run npm install hm-parser or yarn add hm-parser.
Check the input string for correct Hindley-Milner syntax (e.g., 'hello :: a -> Maybe a').
No dependency data recorded yet.