]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
beginning of the filesystem module
[functorrent.git] / functorrent.cabal
index 77df828a6c52c23387785ed1006a6673f114ccb5..69d77226305a6fa9e5fda816147067442846baf6 100644 (file)
@@ -1,33 +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:  
+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
+                     , 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-modules:       
-  -- other-extensions:    
-  build-depends:       base,
-                       parsec,
-                       containers,
-                       time,
-                       bytestring,
-                       base16-bytestring,
-                       doctest,
-                       HTTP,
-                       cryptohash
-  hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
-  default-language:    Haskell2010
\ No newline at end of file
+  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