]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
add dependency on package "directory" to functorrent-test
[functorrent.git] / functorrent.cabal
index c70ff4e0c62ced4c1c66029bb15afc8e3d7ee6be..7159c30c6b128af3150f3b974f14e745decfdefd 100644 (file)
@@ -42,7 +42,7 @@ 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:       base,
                        base16-bytestring,
@@ -52,7 +52,8 @@ executable functorrent
                        cryptohash,
                        HTTP,
                        network-uri,
-                       parsec
+                       parsec,
+                       directory
 
 test-suite functorrent-test
   type:              exitcode-stdio-1.0
@@ -65,4 +66,13 @@ test-suite functorrent-test
                      containers,
                      doctest,
                      tasty,
-                     tasty-hunit
+                     tasty-hunit,
+                     directory
+
+test-suite functorrent-hlint
+  type:              exitcode-stdio-1.0
+  default-language:  Haskell2010
+  hs-source-dirs:    test
+  main-is:           Hlint.hs
+  build-depends:     base,
+                     hlint