]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
error out if the input string is not a valid filepath
[functorrent.git] / functorrent.cabal
index e72f301bdbc7958f4d8b4a4b527666e794c30bff..b56110ba1d3331d8aeb7eed06dade562db9a0bc0 100644 (file)
@@ -22,36 +22,56 @@ 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:       base,
-                       HTTP,
                        base16-bytestring,
                        binary,
                        bytestring,
                        containers,
                        cryptohash,
-                       doctest,
+                       HTTP,
                        network-uri,
-                       parsec,
-                       time
+                       parsec
 
 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,
-                       HTTP,
                        base16-bytestring,
                        binary,
                        bytestring,
                        containers,
                        cryptohash,
-                       doctest,
+                       HTTP,
                        network-uri,
                        parsec,
-                       time
+                       directory
+
+test-suite functorrent-test
+  type:              exitcode-stdio-1.0
+  default-language:  Haskell2010
+  hs-source-dirs:    test
+  main-is:           Test.hs
+  build-depends:     base,
+                     functorrent,
+                     bytestring,
+                     containers,
+                     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