avoid using MonadFail in ParseDuration
There's no instance for Either String, so that makes it not as useful as it could be, so instead just return an Either String.
This commit is contained in:
parent
ad64079b44
commit
4c58433c48
7 changed files with 13 additions and 15 deletions
|
@ -81,7 +81,7 @@ optParser desc = FsckOptions
|
|||
( long "more" <> short 'm'
|
||||
<> help "continue an incremental fsck"
|
||||
)
|
||||
<|> (ScheduleIncrementalO <$> option (str >>= parseDuration)
|
||||
<|> (ScheduleIncrementalO <$> option (eitherReader parseDuration)
|
||||
( long "incremental-schedule" <> metavar paramTime
|
||||
<> help "schedule incremental fscking"
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue