aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-08-20 15:34:13 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-08-20 15:34:13 -0700
commit604e1da878982fb14827b0ef5087c4646a85ff00 (patch)
treebf6d04f86eb4de8701d9f81740d726415ece2e51 /pandoc.cabal
parent13469af8439dbe4965912e7a78a35affe9194993 (diff)
downloadpandoc-604e1da878982fb14827b0ef5087c4646a85ff00.tar.gz
Added network-uri flag.
This addresses the split of network and network-uri.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal14
1 files changed, 12 insertions, 2 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 882397ba4..ce3b75971 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -201,6 +201,10 @@ Flag make-pandoc-man-pages
Description: Build program to regenerate pandoc man pages from README.
Default: False
+Flag network-uri
+ Description: Get Network.URI from the network-uri package
+ Default: True
+
Library
Build-Depends: base >= 4.2 && <5,
syb >= 0.1 && < 0.5,
@@ -209,7 +213,6 @@ Library
array >= 0.3 && < 0.6,
parsec >= 3.1 && < 3.2,
mtl >= 1.1 && < 2.3,
- network >= 2 && < 2.6,
filepath >= 1.1 && < 1.4,
process >= 1 && < 1.3,
directory >= 1 && < 1.3,
@@ -243,6 +246,10 @@ Library
old-time,
deepseq-generics >= 0.1 && < 0.2,
JuicyPixels >= 3.1.6.1 && < 3.2
+ if flag(network-uri)
+ Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
+ else
+ Build-Depends: network >= 2 && < 2.6
if flag(https)
Build-Depends: http-client >= 0.3.2 && < 0.4,
http-client-tls >= 0.2 && < 0.3,
@@ -339,7 +346,6 @@ Executable pandoc
base >= 4.2 && <5,
directory >= 1 && < 1.3,
filepath >= 1.1 && < 1.4,
- network >= 2 && < 2.6,
text >= 0.11 && < 1.2,
bytestring >= 0.9 && < 0.11,
extensible-exceptions >= 0.1 && < 0.2,
@@ -348,6 +354,10 @@ Executable pandoc
yaml >= 0.8.8.2 && < 0.9,
containers >= 0.1 && < 0.6,
HTTP >= 4000.0.5 && < 4000.3
+ if flag(network-uri)
+ Build-Depends: network-uri >= 2.6 && < 2.7
+ else
+ Build-Depends: network >= 2 && < 2.6
Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
Ghc-Prof-Options: -auto-all -caf-all -rtsopts -with-rtsopts=-K16m
if os(windows)