hlint tweaks
Remotes.hs next, and also Backend/* and Command/*
This commit is contained in:
parent
fd11b5a3e5
commit
57adb0347b
12 changed files with 74 additions and 82 deletions
|
@ -37,17 +37,14 @@ showProgress :: Annex ()
|
|||
showProgress = verbose $ liftIO $ putStr "\n"
|
||||
|
||||
showLongNote :: String -> Annex ()
|
||||
showLongNote s = verbose $ do
|
||||
liftIO $ putStr $ "\n" ++ indented
|
||||
showLongNote s = verbose $ liftIO $ putStr $ "\n" ++ indented
|
||||
where
|
||||
indented = join "\n" $ map (\l -> " " ++ l) $ lines s
|
||||
showEndOk :: Annex ()
|
||||
showEndOk = verbose $ do
|
||||
liftIO $ putStrLn "ok"
|
||||
showEndOk = verbose $ liftIO $ putStrLn "ok"
|
||||
|
||||
showEndFail :: Annex ()
|
||||
showEndFail = verbose $ do
|
||||
liftIO $ putStrLn "\nfailed"
|
||||
showEndFail = verbose $ liftIO $ putStrLn "\nfailed"
|
||||
|
||||
{- Exception pretty-printing. -}
|
||||
showErr :: (Show a) => a -> Annex ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue