Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3725: Re-write withRecentEra to require less nesting r=Anviking a=Anviking It seems we can replace ```haskell main = do era <- getEra withRecentEra era $ \(recentEra :: WriteTx.RecentEra era) -> do doStuff recentEra ``` with ```haskell main = do era <- getEra AnyRecentEra (recentEra :: WriteTx.RecentEra era) <- guardIsRecentEra era doStuff recentEra ``` to save on precious horizontal space! ### Comments <!-- Additional comments, links, or screenshots to attach, if any. --> ### Issue Number <!-- Reference the Jira/GitHub issue that this PR relates to, and which requirements it tackles. Note: Jira issues of the form ADP- will be auto-linked. --> Co-authored-by: Johannes Lund <johannes.lund@iohk.io>
- Loading branch information