]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
WIP: QuickCheck for BVal type
[functorrent.git] / functorrent.cabal
index ad385087ba6c79e58f5bc1e1b944abaa7d4e23f3..08fd0c247a7a8e167d0eab360c8ce0117e4f3545 100644 (file)
@@ -20,23 +20,26 @@ library
                        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:       HTTP,
-                       HUnit,
-                       base,
+  build-depends:       base,
                        base16-bytestring,
                        binary,
                        bytestring,
                        containers,
                        cryptohash,
-                       doctest,
+                       directory,
+                       HTTP,
                        network-uri,
                        parsec,
+                       QuickCheck,
                        tasty,
                        tasty-hunit
 
@@ -44,28 +47,37 @@ executable functorrent
   main-is:             Main.hs
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
+  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os
   default-language:    Haskell2010
-  build-depends:       HTTP,
-                       base,
+  build-depends:       base,
                        base16-bytestring,
                        binary,
                        bytestring,
                        containers,
                        cryptohash,
-                       doctest,
+                       directory,
+                       HTTP,
                        network-uri,
                        parsec
 
-test-suite lisper-test
+test-suite functorrent-test
   type:              exitcode-stdio-1.0
   default-language:  Haskell2010
   hs-source-dirs:    test
   main-is:           Test.hs
-  build-depends:     HUnit,
-                     base,
+  build-depends:     base,
+                     functorrent,
                      bytestring,
                      containers,
-                     functorrent,
+                     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