diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-19 00:57:40 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-19 00:57:40 -0400 |
commit | 9fc94d780b7331da13597208ba37a9f4d4ab6531 (patch) | |
tree | 6572c007ac50a8086a6cdadf2c80de1fc4cc24ea /Annex | |
parent | 1db7d27a451f552dbae8760e83c73b90da8114d5 (diff) |
better readProcess
Diffstat (limited to 'Annex')
-rw-r--r-- | Annex/UUID.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/UUID.hs b/Annex/UUID.hs index 13cee865d..09862f9fc 100644 --- a/Annex/UUID.hs +++ b/Annex/UUID.hs @@ -32,7 +32,7 @@ configkey = annexConfig "uuid" {- Generates a UUID. There is a library for this, but it's not packaged, - so use the command line tool. -} genUUID :: IO UUID -genUUID = gen . lines <$> readProcess command params [] +genUUID = gen . lines <$> readProcess command params where gen [] = error $ "no output from " ++ command gen (l:_) = toUUID l |