News for hackers. Stuff that matters.
Re:Haskell: A Great Procedural Language by tadfisher on Sunday January 19, 2025 @06:30PM (#42763251)
Pedantry: >>= can be used for any instance of the Monad typeclass. GHC isn't sufficiently advanced to verify that a given Monad instance satisfies the monad laws; it can verify that the instance satisfies the type definition, but for e.g. the identity law "m >>= return === m" the instance can still return something violating the law (not something substitutable with m).

There are no comments on this comment yet.