News for hackers. Stuff that matters.
Re:Don’t Think, Just Defunctionalize by maxiepoo on Wednesday December 23, 2020 @09:25AM (#25517881)
Yes, this is well known, good catch!

If you read McBride's paper "Clowns to the Left of Me, Jokers to the Right" (https://www.cis.upenn.edu/~cis39903/static/clowns.pdf) is exactly about systematically deriving the type of defunctionalized stacks for the fold over an ADT. The ordinary derivative is then the special case where you are just mapping a function that doesn't change the type.

There are no comments on this comment yet.