scriptum icon indicating copy to clipboard operation
scriptum copied to clipboard

`Eq` type class must take thunk-equality into account

Open ivenmarquardt opened this issue 4 years ago • 0 comments

thunks are implemented as proxies in scriptum. The problem is that you cannot intercept ===/== with the proxy type, hence special care have to be taken to accept the following expression:

thunk(() => 2 * 3, "() => Number") === thunk(() => 2 * 3, "() => Number") === true

ivenmarquardt avatar Jul 07 '21 15:07 ivenmarquardt