clean up read/show abuse
Avoid ever using read to parse a non-haskell formatted input string. show :: Key is arguably still show abuse, but displaying Keys as filenames is just too useful to give up.
This commit is contained in:
parent
fdf988be6d
commit
b11a63a860
18 changed files with 75 additions and 98 deletions
|
@ -45,9 +45,9 @@ options = commonOptions ++
|
|||
where
|
||||
check expected = do
|
||||
u <- getUUID
|
||||
when (u /= read expected) $ error $
|
||||
when (u /= toUUID expected) $ error $
|
||||
"expected repository UUID " ++ expected
|
||||
++ " but found UUID " ++ show u
|
||||
++ " but found UUID " ++ fromUUID u
|
||||
|
||||
header :: String
|
||||
header = "Usage: git-annex-shell [-c] command [parameters ...] [option ..]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue