summaryrefslogtreecommitdiff
path: root/Backend/SHA.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 /Backend/SHA.hs
parent3d2a9f84051e9dc705ba4bb4828af691e479ae0e (diff)
playing with >=>
Apparently in haskell if you teach a man to fish, he'll write more pointfree code.
Diffstat (limited to 'Backend/SHA.hs')
-rw-r--r--Backend/SHA.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/SHA.hs b/Backend/SHA.hs
index 3a54a8871..3f210df1f 100644
--- a/Backend/SHA.hs
+++ b/Backend/SHA.hs
@@ -83,7 +83,7 @@ keyValue size file = do
{- Extension preserving keys. -}
keyValueE :: SHASize -> FilePath -> Annex (Maybe Key)
-keyValueE size file = keyValue size file >>= maybe (return Nothing) addE
+keyValueE size file = keyValue >>= maybe (return Nothing) addE
where
addE k = return $ Just $ k
{ keyName = keyName k ++ extension