Skip to content
Snippets Groups Projects
Commit 633e6bcb authored by Iustin Pop's avatar Iustin Pop
Browse files

Simplify the wrapIO function

This fixes one warning from hlint.
parent c9926b22
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment