summaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-10-31 23:39:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-10-31 23:39:55 -0400
commitc643136e32b99a650a6fdea0731ea5af275f6866 (patch)
tree0685c22f6bad89c40921d46d8ea081d86b3bb6bb /Command/Fsck.hs
parent3d2a9f84051e9dc705ba4bb4828af691e479ae0e (diff)
playing with >=>
Apparently in haskell if you teach a man to fish, he'll write more pointfree code.
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index 8d6f03d76..d1abb29e3 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -69,7 +69,7 @@ performBare key backend = check
]
check :: [Annex Bool] -> CommandPerform
-check s = sequence s >>= dispatch
+check = sequence >=> dispatch
where
dispatch vs
| all (== True) vs = next $ return True