News for hackers. Stuff that matters.
Re:Haskell Fan Site by kevmo314 on Sunday June 23, 2019 @01:46PM (#20257307)
Don't you just call a library function? https://hackage.haskell.org/package/memoize-0.8.1/docs/Data-...

Just like in Python...?

Re:Haskell Fan Site by owl57 on Sunday June 23, 2019 @02:35PM (#20257722)
"However, it appears to work."

Wow. I don't remember reading such blasphemy in other Haskell docs. And I like it, no joke. Though it's likely about the performance characteristics; memoize probably behaves (and not just appears to behave) like identity modulo performance, that's just not documented clearly enough.