summaryrefslogtreecommitdiff
path: root/examples/Client.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Client.hs')
-rw-r--r--examples/Client.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/Client.hs b/examples/Client.hs
new file mode 100644
index 00000000..efafba72
--- /dev/null
+++ b/examples/Client.hs
@@ -0,0 +1,17 @@
1module Main (main) where
2
3import Control.Concurrent
4import Data.Default
5import Data.Torrent
6import Network.BitTorrent.Client
7import System.Environment
8import Text.PrettyPrint.Class
9
10
11main :: IO ()
12main = do
13 [path] <- getArgs
14 torrent <- fromFile path
15 client <- newClient def
16 addTorrent torrent client
17 return () \ No newline at end of file