blob: efafba72c9ea8568de27a80bf2b594f3f5e5c794 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module Main (main) where
import Control.Concurrent
import Data.Default
import Data.Torrent
import Network.BitTorrent.Client
import System.Environment
import Text.PrettyPrint.Class
main :: IO ()
main = do
[path] <- getArgs
torrent <- fromFile path
client <- newClient def
addTorrent torrent client
return ()
|