Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active February 1, 2017 22:19
Show Gist options
  • Save deque-blog/0d7e5bd000847a647b599485e018632d to your computer and use it in GitHub Desktop.
Save deque-blog/0d7e5bd000847a647b599485e018632d to your computer and use it in GitHub Desktop.
instance Monoid Result where
mempty = Success
mappend lhs@Failure{} _ = lhs
mappend _ rhs = rhs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment