mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
🔥 the unlawful Monad instance for Result.
This commit is contained in:
parent
52aa3800b7
commit
59be638d70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user