]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
beginning of the filesystem module
[functorrent.git] / functorrent.cabal
index c4da29dc1adce981bf64705131d98cfa3a10275d..69d77226305a6fa9e5fda816147067442846baf6 100644 (file)
@@ -1,90 +1,56 @@
--- Initial functorrent.cabal generated by cabal init. For further documentation,
--- see http://haskell.org/cabal/users-guide/
-
 name:                functorrent
-version:             0.2.0
-synopsis:            A Bit-torrent client
-description:         A bittorrent client
+version:             0.1.0.0
+synopsis:            A BitTorrent client
+description:         Please see README
+homepage:            https://github.com/vu3rdd/functorrent
 license:             GPL-3
-license-file:        LICENSE
+license-file:        COPYING
 author:              Ramakrishnan Muthukrishnan
 maintainer:          ram@rkrishnan.org
--- copyright:
+copyright:           Copyright: (c) 2016 Ramakrishnan Muthukrishnan
 category:            Network
 build-type:          Simple
-extra-source-files:  README.md
-cabal-version:       >=1.18
+extra-source-files:  README
+cabal-version:       >=1.10
+tested-with:         GHC == 7.10.2
 
 library
-  exposed-modules:     FuncTorrent.Bencode,
-                       FuncTorrent.FileSystem,
-                       FuncTorrent.Logger,
-                       FuncTorrent.Metainfo,
-                       FuncTorrent.Network
-                       FuncTorrent.Peer,
-                       FuncTorrent.PeerMsgs,
-                       FuncTorrent.PieceManager,
-                       FuncTorrent.Server,
-                       FuncTorrent.Tracker,
-                       FuncTorrent.Utils
-
-  other-extensions:    OverloadedStrings
-  hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns -fno-warn-orphans
   default-language:    Haskell2010
-  build-depends:       base,
-                       base16-bytestring,
-                       binary,
-                       bytestring,
-                       containers,
-                       cryptohash,
-                       directory,
-                       HTTP,
-                       mtl,
-                       network,
-                       network-uri,
-                       parsec,
-                       QuickCheck,
-                       safe,
-                       transformers
+  ghc-options:         -Wall
+  hs-source-dirs:      src
+  exposed-modules:     FuncTorrent.Bencode
+                     , FuncTorrent.Metainfo
+                     , FuncTorrent.Filesystem
+  build-depends:       base >= 4.7 && < 5
+                     , bytestring
+                     , containers
+                     , cryptohash
+                     , parsec
 
 executable functorrent
-  main-is:             Main.hs
-  other-extensions:    OverloadedStrings
+  default-language:    Haskell2010
+  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
   hs-source-dirs:      src/main
-  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os -fno-warn-orphans
+  main-is:             Main.hs
+  build-depends:       base
+                     , functorrent
+
+test-suite spec
   default-language:    Haskell2010
-  build-depends:       base,
-                       base16-bytestring,
-                       binary,
-                       bytestring,
-                       containers,
-                       cryptohash,
-                       directory,
-                       functorrent,
-                       HTTP,
-                       mtl,
-                       network,
-                       network-uri,
-                       QuickCheck,
-                       random,
-                       safe
+  ghc-options:         -Wall
+  type:                exitcode-stdio-1.0
+  other-modules:       BencodeSpec
+                     , MetainfoSpec
+  hs-source-dirs:      test
+  main-is:             Spec.hs
+  build-depends:       base
+                     , functorrent
+                     , hspec
+                     , bytestring
+                     , containers
+                     , QuickCheck
+
 
-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
+source-repository head
+  type:     git
+  location: https://github.com/vu3rdd/functorrent