Skip to content

Comment on Exotic List Monadsparent

Comments

I don't think that holds for left identity:

    pure a >>= f ≡ f a

Exactly, and the right identity is also violated:

    m >>= pure ≡ m

ahh right! serves me right, i should've spent more than 10 secs checking

Everyone 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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.