]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
Basic infrastructure for Extension messages (BEP 0010)
[functorrent.git] / functorrent.cabal
index 2ec81bb1dfa020d9f04fe30acc52b0b2d4d4d233..50bd270cbe3f16027bfed70c303183b9ae89bd58 100644 (file)
@@ -2,11 +2,11 @@
 -- see http://haskell.org/cabal/users-guide/
 
 name:                functorrent
-version:             0.1.0.0
+version:             0.2.0
 synopsis:            A Bit-torrent client
 description:         A bittorrent client
 license:             GPL-3
-license-file:        LICENSE
+license-file:        COPYING
 author:              Ramakrishnan Muthukrishnan
 maintainer:          ram@rkrishnan.org
 -- copyright:
@@ -16,15 +16,23 @@ extra-source-files:  README.md
 cabal-version:       >=1.18
 
 library
-  exposed-modules:     FuncTorrent
-                       FuncTorrent.Bencode,
+  exposed-modules:     FuncTorrent.Bencode,
+                       FuncTorrent.FileSystem,
                        FuncTorrent.Logger,
                        FuncTorrent.Metainfo,
                        FuncTorrent.Network
                        FuncTorrent.Peer,
-                       FuncTorrent.Tracker
+                       FuncTorrent.PeerMsgs,
+                       FuncTorrent.PieceManager,
+                       FuncTorrent.Server,
+                       FuncTorrent.Tracker,
+                       FuncTorrent.Tracker.Http,
+                       FuncTorrent.Tracker.Types,
+                       FuncTorrent.Tracker.Udp,
+                       FuncTorrent.MagnetURI,
+                       FuncTorrent.Utils,
+                       FuncTorrent.Config
 
-  other-modules:       FuncTorrent.Utils
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
   ghc-options:         -Wall -fwarn-incomplete-patterns -fno-warn-orphans
@@ -42,14 +50,14 @@ library
                        network-uri,
                        parsec,
                        QuickCheck,
+                       random,
                        safe,
-                       tasty,
-                       tasty-hunit
+                       transformers
 
-executable functorrent
+executable functorrent-exe
   main-is:             Main.hs
   other-extensions:    OverloadedStrings
-  hs-source-dirs:      src
+  hs-source-dirs:      src/main
   ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os -fno-warn-orphans
   default-language:    Haskell2010
   build-depends:       base,
@@ -59,29 +67,23 @@ executable functorrent
                        containers,
                        cryptohash,
                        directory,
+                       functorrent,
                        HTTP,
                        mtl,
                        network,
                        network-uri,
-                       parsec,
                        QuickCheck,
+                       random,
                        safe
 
 test-suite functorrent-test
   type:              exitcode-stdio-1.0
   default-language:  Haskell2010
   hs-source-dirs:    test
-  main-is:           Test.hs
-  other-modules:     BencodeTests
-  build-depends:     base,
-                     functorrent,
-                     bytestring,
-                     containers,
-                     directory,
-                     doctest,
-                     QuickCheck,
-                     tasty,
-                     tasty-hunit,
-                     QuickCheck,
-                     tasty-quickcheck,
-                     test-framework-quickcheck2
+  main-is:           Main.hs
+  other-modules:     MagneturiTests
+  build-depends:     base
+                   , bytestring
+                   , functorrent
+                   , hspec
+                   , QuickCheck