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](https://nixos.org/nix/), in which case, typing ```nix-shell```
10 at the root of the source code repo should drop you into a shell which has all the package
11 dependencies installed.
16 clone the repo; cd functorrent;
19 $ wget http://www.stackage.org/lts/cabal.config
20 $ cabal install --only-dependencies --enable-tests
21 $ cabal build # binaries in ./dist/built/functorrent/*
27 [nix-shell] $ cabal configure && cabal build
31 - Become more profient with Haskell.
32 - Implement something non-trivial with Haskell (crypto, file operations, network
33 operations, concurrency, bit twiddling, DHT).
34 - Follow the spec - https://wiki.theory.org/BitTorrentSpecification
35 - Easy for newbies like me to read and understand along side the spec.
36 - doctest and quickcheck tests.
37 - Follow Haskell Style Guide - https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
41 - can decode torrent files (bencoding)
42 - talk to the tracker and get the peer list
43 - the `main' program takes a torrent file (in the local file system) as input and
44 prints the {ip,port} for each peer, after talking to the tracker.
50 * Get the file download working in the simplest possible way.
51 * Concurrency (threads per peer)
52 * other advanced features of Bit Torrent (like DHT).