Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created February 1, 2017 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/47993cef2987d5bdf2e42bc9d46c526c to your computer and use it in GitHub Desktop.
Save deque-blog/47993cef2987d5bdf2e42bc9d46c526c to your computer and use it in GitHub Desktop.
overFailure :: Result -> (Result -> Result) -> Result
overFailure Success _ = Success
overFailure failure f = f failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment