From c79473051a8e1647b14f351b72768b74301acc33 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 19 Jan 2022 13:04:08 -0500 Subject: Deal with the MonadFail proposal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.) --- git-annex.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-annex.cabal') diff --git a/git-annex.cabal b/git-annex.cabal index d94b1469f..403fb65c2 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -202,7 +202,7 @@ custom-setup Executable git-annex Main-Is: git-annex.hs Build-Depends: - base (>= 4.6 && < 5.0), + base (>= 4.9 && < 5.0), optparse-applicative (>= 0.11.0), containers (>= 0.5.0.0), exceptions (>= 0.6), -- cgit v1.2.3