]> git.rkrishnan.org Git - functorrent.git/blobdiff - src/FuncTorrent/Filesystem.hs
hspec tests for single/multi torrent, bencode etc
[functorrent.git] / src / FuncTorrent / Filesystem.hs
diff --git a/src/FuncTorrent/Filesystem.hs b/src/FuncTorrent/Filesystem.hs
new file mode 100644 (file)
index 0000000..66468c4
--- /dev/null
@@ -0,0 +1,30 @@
+{-
+ - Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
+ -
+ - This file is part of FuncTorrent.
+ -
+ - FuncTorrent is free software; you can redistribute it and/or modify
+ - it under the terms of the GNU General Public License as published by
+ - the Free Software Foundation; either version 3 of the License, or
+ - (at your option) any later version.
+ -
+ - FuncTorrent is distributed in the hope that it will be useful,
+ - but WITHOUT ANY WARRANTY; without even the implied warranty of
+ - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ - GNU General Public License for more details.
+ -
+ - You should have received a copy of the GNU General Public License
+ - along with FuncTorrent; if not,  see <http://www.gnu.org/licenses/>
+ -}
+
+module FuncTorrent.Filesystem
+       (new
+       , FilesystemState
+       , getBlock
+       , putBlock
+       , getStats
+       ) where
+
+data Filesystem = Filesystem { pieces :: [Piece]
+                             , stats :: Stats
+