]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
beginning of the filesystem module
[functorrent.git] / functorrent.cabal
index 08fd0c247a7a8e167d0eab360c8ce0117e4f3545..69d77226305a6fa9e5fda816147067442846baf6 100644 (file)
@@ -1,83 +1,56 @@
--- Initial functorrent.cabal generated by cabal init. For further documentation,
--- see http://haskell.org/cabal/users-guide/
-
 name:                functorrent
 version:             0.1.0.0
-synopsis:            A Bit-torrent client
-description:         A bittorrent client
+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
-cabal-version:       >=1.18
+cabal-version:       >=1.10
+tested-with:         GHC == 7.10.2
 
 library
-  exposed-modules:     FuncTorrent
-                       FuncTorrent.Bencode,
-                       FuncTorrent.Logger,
-                       FuncTorrent.Metainfo,
-                       FuncTorrent.Network
-                       FuncTorrent.Peer,
-                       FuncTorrent.Tracker
-
-  other-modules:       FuncTorrent.Utils
-  other-extensions:    OverloadedStrings
-  hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
   default-language:    Haskell2010
-  build-depends:       base,
-                       base16-bytestring,
-                       binary,
-                       bytestring,
-                       containers,
-                       cryptohash,
-                       directory,
-                       HTTP,
-                       network-uri,
-                       parsec,
-                       QuickCheck,
-                       tasty,
-                       tasty-hunit
+  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
+  default-language:    Haskell2010
+  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
+  hs-source-dirs:      src/main
   main-is:             Main.hs
-  other-extensions:    OverloadedStrings
-  hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os
+  build-depends:       base
+                     , functorrent
+
+test-suite spec
   default-language:    Haskell2010
-  build-depends:       base,
-                       base16-bytestring,
-                       binary,
-                       bytestring,
-                       containers,
-                       cryptohash,
-                       directory,
-                       HTTP,
-                       network-uri,
-                       parsec
+  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
-  build-depends:     base,
-                     functorrent,
-                     bytestring,
-                     containers,
-                     directory,
-                     doctest,
-                     tasty,
-                     tasty-hunit
 
-test-suite functorrent-hlint
-  type:              exitcode-stdio-1.0
-  default-language:  Haskell2010
-  hs-source-dirs:    test
-  main-is:           Hlint.hs
-  build-depends:     base,
-                     hlint
+source-repository head
+  type:     git
+  location: https://github.com/vu3rdd/functorrent