by runevault · 4y ago · 0 comments
Although in your fromMaybe case couldn't you just have it generate short circuiting code under the hood instead of always evaluating? That isn't necessarily quite the same thing as laziness.
The beauty of functions like fromMaybe is they're only that - just plain, regular functions. No special casing under the hood required.