1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

🔥 the unlawful Monad instance for Result.

This commit is contained in:
Rob Rix 2017-04-26 13:40:03 -04:00
parent 52aa3800b7
commit 59be638d70

View File

@ -182,8 +182,3 @@ instance Alternative Result where
Result a <|> _ = Result a
_ <|> Result b = Result b
Error a <|> Error b = Error (a <> b)
instance Monad Result where
return = pure
Error a >>= _ = Error a
Result a >>= f = f a