diff options
author | Joey Hess <joey@kitenet.net> | 2011-10-31 23:39:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-10-31 23:39:55 -0400 |
commit | c643136e32b99a650a6fdea0731ea5af275f6866 (patch) | |
tree | 0685c22f6bad89c40921d46d8ea081d86b3bb6bb /Backend/SHA.hs | |
parent | 3d2a9f84051e9dc705ba4bb4828af691e479ae0e (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.hs | 2 |
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 |