Re:Exotic List Monads
by jitl on Thursday January 07, 2021 @05:54PM
(#25678815)
No comments, because no one understand these (At least, I don't).
[ Parent
| on HN ]
Haskellers are asleep, let's post impure functions!
function() {console.log(Math.random())}
:: IO ()
Blasphemy!
Re:Exotic List Monads
by still_grokking on Friday January 08, 2021 @06:03PM
(#25691659)
That's not a function. That's a procedure.
Haha, impure function go brrr
It seems like understanding the exotic monads themselves is not the point. To me, that page mostly shows that monad laws allow some weird Monad instances on the same data structure.
The only exotic monad which was intuitive to me was GlobalFailure, which interprets lists as "Maybe NonEmpty": An empty list signifies failure and aborts the whole computation, while non-empty lists behave as normal.