BitTorrent library in Haskell