Skip to content

Commit

Permalink
Merge #4815
Browse files Browse the repository at this point in the history
4815: Refactor code using onLeft and onNothing r=Jimbo4350 a=newhoggy

Using `onLeft` and `onNothing` gives more opportunities for straight line code.  Examples of this are marked.

Modifying the code elsewhere as well for general consistency.

This PR is divided into multiple commits to group related changes for easy review.

Note, `throwE` from `Control.Monad.Trans.Except` is the same as `left` from `Control.Monad.Trans.Except.Extra`.

Co-authored-by: John Ky <john.ky@iohk.io>
  • Loading branch information
iohk-bors[bot] and newhoggy committed Feb 8, 2023
2 parents 0a2f860 + f0571e9 commit c8862fe
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 175 deletions.

0 comments on commit c8862fe

Please sign in to comment.