summaryrefslogtreecommitdiff
path: root/src/Data/Torrent/Tree.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-11-23 03:37:15 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-11-23 03:37:15 +0400
commited25a297094b483dce06e14d52ced2f93f6dca41 (patch)
tree3df60d8b30af29345de021f251903a175e78c70c /src/Data/Torrent/Tree.hs
parent708938679954a5d5f9def82e1fa873c19ed662df (diff)
Use pretty-class package
Diffstat (limited to 'src/Data/Torrent/Tree.hs')
-rw-r--r--src/Data/Torrent/Tree.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Data/Torrent/Tree.hs b/src/Data/Torrent/Tree.hs
index cf71c2ec..102f4dff 100644
--- a/src/Data/Torrent/Tree.hs
+++ b/src/Data/Torrent/Tree.hs
@@ -55,6 +55,8 @@ build MultiFile {..} = Dir $ M.singleton liDirName files
55--decompress :: DirTree () -> [FileInfo ()] 55--decompress :: DirTree () -> [FileInfo ()]
56--decompress = undefined 56--decompress = undefined
57 57
58-- TODO pretty print
59
58-- | Lookup file by path. 60-- | Lookup file by path.
59lookup :: [FilePath] -> DirTree a -> Maybe (DirTree a) 61lookup :: [FilePath] -> DirTree a -> Maybe (DirTree a)
60lookup [] t = Just t 62lookup [] t = Just t