aboutsummaryrefslogtreecommitdiff
path: root/Command/Init.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Init.hs')
-rw-r--r--Command/Init.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/Init.hs b/Command/Init.hs
index 8ce82a75e..e12c6700c 100644
--- a/Command/Init.hs
+++ b/Command/Init.hs
@@ -1,6 +1,7 @@
{- git-annex command
-
- Copyright 2010 Joey Hess <id@joeyh.name>
+ - Copyright 2022 Benjamin Barenblat <bbarenblat@gmail.com>
-
- Licensed under the GNU GPL version 3 or higher.
-}
@@ -30,7 +31,7 @@ optParser desc = InitOptions
<> help "Override default annex.version"
))
-parseVersion :: Monad m => String -> m Version
+parseVersion :: MonadFail m => String -> m Version
parseVersion v
| v `elem` supportedVersions = return v
| otherwise = fail $ v ++ " is not a currently supported repository version"