summaryrefslogtreecommitdiff
path: root/Locations.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-13 19:14:00 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-13 19:14:29 -0400
commit60c31afc3804734e8c85b1d3f4a530b9cdaf8b5e (patch)
treefe45d41c05d640dbb83f12f0e461d5fa01e25d61 /Locations.hs
parent61c3ce656263bfaccf9349a77d3f046a534f9bd8 (diff)
add decodeW8
Diffstat (limited to 'Locations.hs')
-rw-r--r--Locations.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Locations.hs b/Locations.hs
index be5fd6c2f..d68d5fb5f 100644
--- a/Locations.hs
+++ b/Locations.hs
@@ -248,12 +248,12 @@ hashDirMixed :: Hasher
hashDirMixed k = addTrailingPathSeparator $ take 2 dir </> drop 2 dir
where
dir = take 4 $ display_32bits_as_dir =<< [a,b,c,d]
- ABCD (a,b,c,d) = md5 $ encodeFilePath $ key2file k
+ ABCD (a,b,c,d) = md5 $ md5FilePath $ key2file k
hashDirLower :: Hasher
hashDirLower k = addTrailingPathSeparator $ take 3 dir </> drop 3 dir
where
- dir = take 6 $ md5s $ encodeFilePath $ key2file k
+ dir = take 6 $ md5s $ md5FilePath $ key2file k
{- modified version of display_32bits_as_hex from Data.Hash.MD5
- Copyright (C) 2001 Ian Lynagh