]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
hspec tests for single/multi torrent, bencode etc
[functorrent.git] / functorrent.cabal
diff --git a/functorrent.cabal b/functorrent.cabal
new file mode 100644 (file)
index 0000000..63ce6d2
--- /dev/null
@@ -0,0 +1,55 @@
+name:                functorrent
+version:             0.1.0.0
+synopsis:            A BitTorrent client
+description:         Please see README
+homepage:            https://github.com/vu3rdd/functorrent
+license:             GPL-3
+license-file:        COPYING
+author:              Ramakrishnan Muthukrishnan
+maintainer:          ram@rkrishnan.org
+copyright:           Copyright: (c) 2016 Ramakrishnan Muthukrishnan
+category:            Network
+build-type:          Simple
+extra-source-files:  README
+cabal-version:       >=1.10
+tested-with:         GHC == 7.10.2
+
+library
+  default-language:    Haskell2010
+  ghc-options:         -Wall
+  hs-source-dirs:      src
+  exposed-modules:     FuncTorrent.Bencode
+                     , FuncTorrent.Metainfo
+  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
+  build-depends:       base
+                     , functorrent
+
+test-suite spec
+  default-language:    Haskell2010
+  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
+
+
+source-repository head
+  type:     git
+  location: https://github.com/vu3rdd/functorrent