6 ms·
I don't think that holds for left identity: pure a >>= f ≡ f a
by mjhoy 6y ago
I don't think that holds for left identity:
pure a >>= f ≡ f a
- klodolph 6y agoExactly, and the right identity is also violated: m >>= pure ≡ m
- uryga 6y agoahh right! serves me right, i should've spent more than 10 secs checking
- klodolph 6y agoEveryone experiences this in Haskell, where you make some statement online and then someone tells you some way in which it’s incorrect. I’m sure most real-world Haskell programs are “incorrect” in some way.
- deleted 6y ago[deleted]