]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
Add directory & tasty as a library dependencies
[functorrent.git] / functorrent.cabal
index 77df828a6c52c23387785ed1006a6673f114ccb5..c3492db45f722011a92b23244fe311318cbf8254 100644 (file)
@@ -1,5 +1,5 @@
--- Initial functorrent.cabal generated by cabal init.  For further 
--- documentation, see http://haskell.org/cabal/users-guide/
+-- Initial functorrent.cabal generated by cabal init. For further documentation,
+-- see http://haskell.org/cabal/users-guide/
 
 name:                functorrent
 version:             0.1.0.0
@@ -9,25 +9,73 @@ license:             GPL-3
 license-file:        LICENSE
 author:              Ramakrishnan Muthukrishnan
 maintainer:          ram@rkrishnan.org
--- copyright:           
+-- copyright:
 category:            Network
 build-type:          Simple
--- extra-source-files:  
-cabal-version:       >=1.10
+extra-source-files:  README
+cabal-version:       >=1.18
+
+library
+  exposed-modules:     FuncTorrent
+                       FuncTorrent.Bencode,
+                       FuncTorrent.Logger,
+                       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,
+                       base16-bytestring,
+                       binary,
+                       bytestring,
+                       containers,
+                       cryptohash,
+                       directory,
+                       HTTP,
+                       network-uri,
+                       parsec,
+                       tasty,
+                       tasty-hunit
 
 executable functorrent
   main-is:             Main.hs
-  -- other-modules:       
-  -- other-extensions:    
+  other-extensions:    OverloadedStrings
+  hs-source-dirs:      src
+  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os
+  default-language:    Haskell2010
   build-depends:       base,
-                       parsec,
-                       containers,
-                       time,
-                       bytestring,
                        base16-bytestring,
-                       doctest,
+                       binary,
+                       bytestring,
+                       containers,
+                       cryptohash,
+                       directory,
                        HTTP,
-                       cryptohash
-  hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
-  default-language:    Haskell2010
\ No newline at end of file
+                       network-uri,
+                       parsec
+
+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,
+                     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