X-Git-Url: https://git.rkrishnan.org/?p=functorrent.git;a=blobdiff_plain;f=functorrent.cabal;h=50bd270cbe3f16027bfed70c303183b9ae89bd58;hp=b55644c3b4102eee928f449c846314e23e5e4936;hb=27fccae52521d6b0d0502708d737c3b6eb908941;hpb=1cc8e5407ac77fed52b8237f42fe2bf5cba61611 diff --git a/functorrent.cabal b/functorrent.cabal index b55644c..50bd270 100644 --- a/functorrent.cabal +++ b/functorrent.cabal @@ -1,34 +1,89 @@ --- Initial functorrent.cabal generated by cabal init. For further --- documentation, see http://haskell.org/cabal/users-guide/ +-- Initial functorrent.cabal generated by cabal init. For further documentation, +-- 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: +-- copyright: category: Network build-type: Simple --- extra-source-files: -cabal-version: >=1.10 +extra-source-files: README.md +cabal-version: >=1.18 -executable functorrent - main-is: Main.hs - -- other-modules: - -- other-extensions: +library + exposed-modules: FuncTorrent.Bencode, + FuncTorrent.FileSystem, + FuncTorrent.Logger, + FuncTorrent.Metainfo, + FuncTorrent.Network + FuncTorrent.Peer, + FuncTorrent.PeerMsgs, + FuncTorrent.PieceManager, + FuncTorrent.Server, + FuncTorrent.Tracker, + FuncTorrent.Tracker.Http, + FuncTorrent.Tracker.Types, + FuncTorrent.Tracker.Udp, + FuncTorrent.MagnetURI, + FuncTorrent.Utils, + FuncTorrent.Config + + other-extensions: OverloadedStrings + hs-source-dirs: src + ghc-options: -Wall -fwarn-incomplete-patterns -fno-warn-orphans + default-language: Haskell2010 build-depends: base, - parsec, - containers, - time, - bytestring, base16-bytestring, - doctest, + binary, + bytestring, + containers, + cryptohash, + directory, HTTP, + mtl, + network, + network-uri, + parsec, + QuickCheck, + random, + safe, + transformers + +executable functorrent-exe + main-is: Main.hs + other-extensions: OverloadedStrings + hs-source-dirs: src/main + ghc-options: -Wall -fwarn-incomplete-patterns -optc-Os -fno-warn-orphans + default-language: Haskell2010 + build-depends: base, + base16-bytestring, + binary, + bytestring, + containers, cryptohash, - binary - hs-source-dirs: src - ghc-options: -Wall -fwarn-incomplete-patterns - default-language: Haskell2010 \ No newline at end of file + directory, + functorrent, + HTTP, + mtl, + network, + network-uri, + QuickCheck, + random, + safe + +test-suite functorrent-test + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: test + main-is: Main.hs + other-modules: MagneturiTests + build-depends: base + , bytestring + , functorrent + , hspec + , QuickCheck