3 [![Build Status](https://travis-ci.org/vu3rdd/functorrent.svg?branch=master)](https://travis-ci.org/vu3rdd/functorrent)
7 I suggest using cabal sandbox.
9 Or you can use Nix pkg, in which case, typing `nix-shell' at the root of the
10 source code repo should drop you into a shell which has all the package
11 dependencies installed.
15 clone the repo; cd functorrent;
18 $ wget http://www.stackage.org/lts/cabal.config
19 $ cabal install --only-dependencies --enable-tests
20 $ cabal build # binaries in ./dist/built/functorrent/*
24 - Become more profient with Haskell.
25 - Implement something non-trivial with Haskell (crypto, file operations, network
26 operations, concurrency, bit twiddling, DHT).
27 - Follow the spec - https://wiki.theory.org/BitTorrentSpecification
28 - Easy for newbies like me to read and understand along side the spec.
29 - doctest and quickcheck tests.
30 - Follow Haskell Style Guide - https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
34 - can decode torrent files (bencoding)
35 - talk to the tracker and get the peer list
36 - the `main' program takes a torrent file (in the local file system) as input and
37 prints the {ip,port} for each peer, after talking to the tracker.
43 * Get the file download working in the simplest possible way.
44 * Concurrency (threads per peer)
45 * other advanced features of Bit Torrent (like DHT).