From f2ebdc9e4b0ad69a5a878c8e14b4e1a6bd34a831 Mon Sep 17 00:00:00 2001 From: Sam T Date: Sun, 9 Jun 2013 03:39:34 +0400 Subject: ~ Hide *.Protocol modules. --- bittorrent.cabal | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bittorrent.cabal') diff --git a/bittorrent.cabal b/bittorrent.cabal index cdc332ab..3b5d0a90 100644 --- a/bittorrent.cabal +++ b/bittorrent.cabal @@ -41,14 +41,19 @@ library , Network.BitTorrent.Peer , Network.BitTorrent.Tracker - , Network.BitTorrent.Tracker.Protocol , Network.BitTorrent.Tracker.Scrape , Network.BitTorrent.Exchange , Network.BitTorrent.Exchange.Selection - , Network.BitTorrent.Exchange.Protocol - other-modules: + if flag(testing) + exposed-modules: Network.BitTorrent.Exchange.Protocol + , Network.BitTorrent.Tracker.Protocol + + if !flag(testing) + other-modules: + Network.BitTorrent.Exchange.Protocol + , Network.BitTorrent.Tracker.Protocol build-depends: -- cgit v1.2.3