Hegel: High order function type inheritance

Created on 12 Apr 2020  路  4Comments  路  Source: JSMonk/hegel

If we declare two functions:

const id = x => x
const K = a => b => a

And then pass id as the argument to 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

https://jsmonk.github.io/hegel/try#MYewdgzgLgBAlgExgXhgDxQPnQKFJWAM2hRgEMsYAjSsvcEiMJVYqACkQEp6CYwArgFsAXDACMpNu3Fd2AcnHye+RlABOY+QCZ5pJghlydynEA

bug

Most helpful comment

It is working now!

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings