projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c9926b2
)
Simplify the wrapIO function
author
Iustin Pop
<iustin@google.com>
Wed, 26 Aug 2009 07:45:41 +0000
(09:45 +0200)
committer
Iustin Pop
<iustin@google.com>
Wed, 26 Aug 2009 07:45:41 +0000
(09:45 +0200)
This fixes one warning from hlint.
Ganeti/HTools/CLI.hs
patch
|
blob
|
history
diff --git
a/Ganeti/HTools/CLI.hs
b/Ganeti/HTools/CLI.hs
index
5bd47ad
..
0309687
100644
(file)
--- a/
Ganeti/HTools/CLI.hs
+++ b/
Ganeti/HTools/CLI.hs
@@
-326,9
+326,7
@@
shTemplate =
-- | Error beautifier
wrapIO :: IO (Result a) -> IO (Result a)
-wrapIO act =
- handle (\e -> return $ Bad $ show e)
- act
+wrapIO = handle (return . Bad . show)
-- | External tool data loader from a variety of sources.
loadExternalData :: Options