]> git.rkrishnan.org Git - functorrent.git/blob - functorrent.cabal
hspec tests for single/multi torrent, bencode etc
[functorrent.git] / functorrent.cabal
1 name:                functorrent
2 version:             0.1.0.0
3 synopsis:            A BitTorrent client
4 description:         Please see README
5 homepage:            https://github.com/vu3rdd/functorrent
6 license:             GPL-3
7 license-file:        COPYING
8 author:              Ramakrishnan Muthukrishnan
9 maintainer:          ram@rkrishnan.org
10 copyright:           Copyright: (c) 2016 Ramakrishnan Muthukrishnan
11 category:            Network
12 build-type:          Simple
13 extra-source-files:  README
14 cabal-version:       >=1.10
15 tested-with:         GHC == 7.10.2
16
17 library
18   default-language:    Haskell2010
19   ghc-options:         -Wall
20   hs-source-dirs:      src
21   exposed-modules:     FuncTorrent.Bencode
22                      , FuncTorrent.Metainfo
23   build-depends:       base >= 4.7 && < 5
24                      , bytestring
25                      , containers
26                      , cryptohash
27                      , parsec
28
29 executable functorrent
30   default-language:    Haskell2010
31   ghc-options:         -threaded -rtsopts -with-rtsopts=-N
32   hs-source-dirs:      src/main
33   main-is:             Main.hs
34   build-depends:       base
35                      , functorrent
36
37 test-suite spec
38   default-language:    Haskell2010
39   ghc-options:         -Wall
40   type:                exitcode-stdio-1.0
41   other-modules:       BencodeSpec
42                      , MetainfoSpec
43   hs-source-dirs:      test
44   main-is:             Spec.hs
45   build-depends:       base
46                      , functorrent
47                      , hspec
48                      , bytestring
49                      , containers
50                      , QuickCheck
51
52
53 source-repository head
54   type:     git
55   location: https://github.com/vu3rdd/functorrent