aboutsummaryrefslogtreecommitdiff
path: root/Types/Difference.hs
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbarenblat@gmail.com>2022-01-19 13:04:08 -0500
committerGravatar Benjamin Barenblat <bbarenblat@gmail.com>2022-01-19 13:31:03 -0500
commitc79473051a8e1647b14f351b72768b74301acc33 (patch)
treeeb25ad044ab8e8b924b9fea02af4a264c998536e /Types/Difference.hs
parent44df82dcbf72d01d2bbb6c0afacff329ca749854 (diff)
Deal with the MonadFail proposal
base-4.9 split MonadFail from Monad. Strengthen some type signatures to require MonadFail instead of just Monad, derive MonadFail in relevant places, and change a partial pattern match inside STM to one that explicitly calls error. (STM is not a MonadFail; the user must explicitly specify the desired semantics if a pattern match doesn’t work out. In this case, the failing branch of the pattern should never be reached, so crashing is fine.)
Diffstat (limited to 'Types/Difference.hs')
0 files changed, 0 insertions, 0 deletions