summaryrefslogtreecommitdiff
path: root/Locations.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-05-16 14:49:28 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-05-16 14:49:28 -0400
commit760cde28b67c14e0ad68e8649c0abe0544c44947 (patch)
tree6d26b4783410f317f18200f66c9031a8d63afba7 /Locations.hs
parent57428c356ea81ea13193ac5dfc32d9a824ed4d65 (diff)
more pointless monadic golfing
Diffstat (limited to 'Locations.hs')
-rw-r--r--Locations.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Locations.hs b/Locations.hs
index 1c4f8296e..38a320a2b 100644
--- a/Locations.hs
+++ b/Locations.hs
@@ -175,7 +175,7 @@ prop_idempotent_fileKey s = Just k == fileKey (keyFile k)
hashDirMixed :: Key -> FilePath
hashDirMixed k = addTrailingPathSeparator $ take 2 dir </> drop 2 dir
where
- dir = take 4 $ concat $ map display_32bits_as_dir [a,b,c,d]
+ dir = take 4 $ display_32bits_as_dir =<< [a,b,c,d]
ABCD (a,b,c,d) = md5 $ Str $ show k
{- Generates a hash directory that is all lower case. -}