]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
Add directory & tasty as a library dependencies
[functorrent.git] / functorrent.cabal
index ad385087ba6c79e58f5bc1e1b944abaa7d4e23f3..c3492db45f722011a92b23244fe311318cbf8254 100644 (file)
@@ -22,19 +22,20 @@ library
                        FuncTorrent.Metainfo,
                        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,
                        tasty,
@@ -44,28 +45,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