]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
Peer: refactor pickPiece function
[functorrent.git] / functorrent.cabal
index 0251a3c8910d91bd2cc38d2c7d372ba967817a94..2ec81bb1dfa020d9f04fe30acc52b0b2d4d4d233 100644 (file)
@@ -12,7 +12,7 @@ maintainer:          ram@rkrishnan.org
 -- copyright:
 category:            Network
 build-type:          Simple
-extra-source-files:  README
+extra-source-files:  README.md
 cabal-version:       >=1.18
 
 library
@@ -27,7 +27,7 @@ library
   other-modules:       FuncTorrent.Utils
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
+  ghc-options:         -Wall -fwarn-incomplete-patterns -fno-warn-orphans
   default-language:    Haskell2010
   build-depends:       base,
                        base16-bytestring,
@@ -37,17 +37,20 @@ library
                        cryptohash,
                        directory,
                        HTTP,
+                       mtl,
+                       network,
                        network-uri,
                        parsec,
+                       QuickCheck,
+                       safe,
                        tasty,
                        tasty-hunit
 
 executable functorrent
   main-is:             Main.hs
-  other-modules:       TestInstances
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns -fno-warn-orphans -optc-Os
+  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os -fno-warn-orphans
   default-language:    Haskell2010
   build-depends:       base,
                        base16-bytestring,
@@ -57,9 +60,12 @@ executable functorrent
                        cryptohash,
                        directory,
                        HTTP,
-                       QuickCheck,
+                       mtl,
+                       network,
                        network-uri,
-                       parsec
+                       parsec,
+                       QuickCheck,
+                       safe
 
 test-suite functorrent-test
   type:              exitcode-stdio-1.0
@@ -73,16 +79,9 @@ test-suite functorrent-test
                      containers,
                      directory,
                      doctest,
+                     QuickCheck,
                      tasty,
                      tasty-hunit,
                      QuickCheck,
                      tasty-quickcheck,
                      test-framework-quickcheck2
-
-test-suite functorrent-hlint
-  type:              exitcode-stdio-1.0
-  default-language:  Haskell2010
-  hs-source-dirs:    test
-  main-is:           Hlint.hs
-  build-depends:     base,
-                     hlint