summaryrefslogtreecommitdiff
path: root/Messages.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-22 20:24:53 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-22 20:24:53 -0400
commit4d376b47b7aa506c4f4a4c5ccc83ca2ef1aeacc2 (patch)
tree33ab2e7c4b72d8a7fce40a0e93f63f3d50a6c3ab /Messages.hs
parentf672c39279366a8927abfcde3050952365f5e0ee (diff)
expose Control.Monad.join
I think I've been looking for that function for some time. Ie, I remember wanting to collapse Just Nothing to Nothing.
Diffstat (limited to 'Messages.hs')
-rw-r--r--Messages.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Messages.hs b/Messages.hs
index cc82b9050..68bd92673 100644
--- a/Messages.hs
+++ b/Messages.hs
@@ -179,7 +179,7 @@ fileNotFound file = do
[ "git-annex:", file, "not found" ]
indent :: String -> String
-indent = join "\n" . map (\l -> " " ++ l) . lines
+indent = intercalate "\n" . map (\l -> " " ++ l) . lines
{- Shows a JSON fragment only when in json mode. -}
maybeShowJSON :: JSON a => [(String, a)] -> Annex ()