Closed nanot1m closed 4 years ago
If we declare two functions:
const id = x => x const K = a => b => a
And then pass id as the argument to K
id
K
const second = K(id)
Type of the function second will be <_c, _a>(_c) => _a, but it should be something like <_c>(_c) => <_b>(_b) => _b
second
<_c, _a>(_c) => _a
<_c>(_c) => <_b>(_b) => _b
https://jsmonk.github.io/hegel/try#MYewdgzgLgBAlgExgXhgDxQPnQKFJWAM2hRgEMsYAjSsvcEiMJVYqACkQEp6CYwArgFsAXDACMpNu3Fd2AcnHye+RlABOY+QCZ5pJghlydynEA
Good issue. We will fix it soon. Thank you for your contribution ^_^
It is working now!
Seems like it doesn't:C
I don't see any issues on https://hegel.js.org/try
If we declare two functions:
And then pass
id
as the argument toK
Type of the function
second
will be<_c, _a>(_c) => _a
, but it should be something like<_c>(_c) => <_b>(_b) => _b
https://jsmonk.github.io/hegel/try#MYewdgzgLgBAlgExgXhgDxQPnQKFJWAM2hRgEMsYAjSsvcEiMJVYqACkQEp6CYwArgFsAXDACMpNu3Fd2AcnHye+RlABOY+QCZ5pJghlydynEA