]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
functorrent.cabal: avoid double compilation, one for lib, another for exe
[functorrent.git] / functorrent.cabal
index 2ec81bb1dfa020d9f04fe30acc52b0b2d4d4d233..b663ef9e7ea75f1fb31738ffe17a1f5ff515a2ae 100644 (file)
@@ -16,15 +16,16 @@ extra-source-files:  README.md
 cabal-version:       >=1.18
 
 library
-  exposed-modules:     FuncTorrent
-                       FuncTorrent.Bencode,
+  exposed-modules:     FuncTorrent.Bencode,
+                       FuncTorrent.Fileops,
                        FuncTorrent.Logger,
                        FuncTorrent.Metainfo,
                        FuncTorrent.Network
                        FuncTorrent.Peer,
-                       FuncTorrent.Tracker
+                       FuncTorrent.PeerMsgs,
+                       FuncTorrent.Tracker,
+                       FuncTorrent.Utils
 
-  other-modules:       FuncTorrent.Utils
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
   ghc-options:         -Wall -fwarn-incomplete-patterns -fno-warn-orphans
@@ -49,7 +50,7 @@ library
 executable functorrent
   main-is:             Main.hs
   other-extensions:    OverloadedStrings
-  hs-source-dirs:      src
+  hs-source-dirs:      src/main
   ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os -fno-warn-orphans
   default-language:    Haskell2010
   build-depends:       base,
@@ -59,6 +60,7 @@ executable functorrent
                        containers,
                        cryptohash,
                        directory,
+                       functorrent,
                        HTTP,
                        mtl,
                        network,