diff options
author | Joey Hess <joey@kitenet.net> | 2012-03-03 20:02:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-03-03 20:02:48 -0400 |
commit | 50c897c082f766777134626b7e8571f0adc2a473 (patch) | |
tree | 9cf27ad6136fc67d9099ca60ef80452e8b13082b /Remote/Directory.hs | |
parent | 3436aba6de8cad844691ca979ab5825f7011fb7e (diff) |
tweak
Diffstat (limited to 'Remote/Directory.hs')
-rw-r--r-- | Remote/Directory.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Remote/Directory.hs b/Remote/Directory.hs index 6f7ce8cd6..d5394fe51 100644 --- a/Remote/Directory.hs +++ b/Remote/Directory.hs @@ -88,9 +88,7 @@ locations d k = map (d </>) (keyPaths k) {- An infinite stream of chunks to use for a given file. -} chunkStream :: FilePath -> [FilePath] -chunkStream f = map tochunk [1 :: Integer ..] - where - tochunk n = f ++ ".chunk" ++ show n +chunkStream f = map (\n -> f ++ ".chunk" ++ show n) [1 :: Integer ..] {- A file that records the number of chunks used. -} chunkCount :: FilePath -> FilePath |