packages feed

bittorrent-0.0.0.1: bittorrent.cabal

name:                  bittorrent
version:               0.0.0.1
license:               BSD3
license-file:          LICENSE
author:                Sam Truzjan
maintainer:            Sam Truzjan <pxqr.sta@gmail.com>
copyright:             (c) 2013, Sam Truzjan
category:              Network
build-type:            Simple
cabal-version:         >= 1.10
tested-with:           GHC == 7.4.1
                     , GHC == 7.6.3
homepage:              https://github.com/cobit/bittorrent
bug-reports:           https://github.com/cobit/bittorrent/issues
synopsis:              Bittorrent protocol implementation.
description:

  A library for making Haskell bittorrent applications easy.
  .
  For more information see:
  <https://github.com/cobit/bittorrent/blob/master/README.md>

extra-source-files:    res/dapper-dvd-amd64.iso.torrent
                       res/pkg.torrent
                     , README.md
                     , changelog

source-repository head
  type:                git
  location:            git://github.com/cobit/bittorrent.git

source-repository this
  type:                git
  location:            git://github.com/cobit/bittorrent.git
  branch:              master
  tag:                 v0.0.0.1

library
  default-language:    Haskell2010
  default-extensions:  PatternGuards
                     , OverloadedStrings
                     , RecordWildCards
  hs-source-dirs:      src
  exposed-modules:     Data.Torrent
--                     , Data.Torrent.Bitfield
                     , Data.Torrent.Block
                     , Data.Torrent.InfoHash
                     , Data.Torrent.Layout
                     , Data.Torrent.Magnet
                     , Data.Torrent.Piece
                     , Data.Torrent.Tree

--                     , System.IO.MMap.Fixed
--                     , System.Torrent.Storage

--                       Network.BitTorrent
--                     , Network.BitTorrent.Extension
--                     , Network.BitTorrent.Peer
--                     , Network.BitTorrent.Tracker
--                     , Network.BitTorrent.Tracker.Protocol
--                     , Network.BitTorrent.Tracker.HTTP
--                     , Network.BitTorrent.Tracker.UDP
--                     , Network.BitTorrent.Exchange
--                     , Network.BitTorrent.Exchange.Protocol
--                     , Network.BitTorrent.DHT
--                     , Network.BitTorrent.DHT.Protocol
--                     , Network.BitTorrent.Sessions
--  other-modules:       Network.BitTorrent.Sessions.Types
  build-depends:       base       == 4.*
                     , bits-extras
                     , pretty

                       -- Control
                     , deepseq
                     , lens
                     , mtl
                     , resourcet
                     , transformers

                       -- Concurrency
                     , SafeSemaphore
                     , BoundedChan >= 1.0.1.0
                     , stm         >= 2.4

                       -- Streaming
                     , conduit          >= 1.0
                     , network-conduit  >= 1.0
                     , cereal-conduit   >= 0.5
                     , binary-conduit

                       -- Data & Data structures
                     , bytestring  >= 0.10.0.0
                     , containers  >= 0.4
                     , data-default
                     , IntervalMap
                     , intset
                     , text        >= 0.11.0
                     , unordered-containers
                     , vector

                       -- Hashing
                     , cryptohash
                     , hashable

                       -- Codecs & Serialization
                     , aeson
                     , base16-bytestring
                     , base32-bytestring
                     , base64-bytestring
                     , bencoding   >= 0.4
                     , binary
                     , cereal      >= 0.3
                     , urlencoded  >= 0.4

                       -- Time
                     , old-locale  >= 1.0
                     , time        >= 0.1

                       -- Network
                     , network     >= 2.4
                     , HTTP        >= 4000.2
                     , krpc        >= 0.3

                       -- System
                     , directory   >= 1
                     , entropy
                     , filepath    >= 1
                     , mmap

  ghc-options:         -Wall
  ghc-prof-options:


test-suite spec
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             Spec.hs
  build-depends:       base == 4.*
                     , bytestring
                     , directory
                     , filepath

                     , aeson
                     , cereal
                     , network
                     , text

                     , hspec
                     , QuickCheck
                     , quickcheck-instances

                     , bencoding
                     , bittorrent
  ghc-options:         -Wall -fno-warn-orphans


--benchmark bench
--  default-language:    Haskell2010
--  default-extensions:
--  type:                exitcode-stdio-1.0
--  hs-source-dirs:      bench
--  main-is:             Main.hs
--  build-depends:       base
--                     , bytestring
--                     , cereal
--                     , network
--
--                     , criterion
--                     , deepseq
--
--                     , bittorrent
--  ghc-options:         -O2 -Wall -fno-warn-orphans