rename readMaybe to readish
a stricter (but also partial) readMaybe is getting added to base
This commit is contained in:
parent
5e172b43c4
commit
ba6088b249
9 changed files with 13 additions and 13 deletions
2
Limit.hs
2
Limit.hs
|
@ -84,7 +84,7 @@ addIn name = addLimit $ check $ if name == "." then inAnnex else inremote
|
|||
- of copies. -}
|
||||
addCopies :: String -> Annex ()
|
||||
addCopies num =
|
||||
case readMaybe num :: Maybe Int of
|
||||
case readish num :: Maybe Int of
|
||||
Nothing -> error "bad number for --copies"
|
||||
Just n -> addLimit $ check n
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue