diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-07-04 22:40:23 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-07-04 23:13:37 -0700 |
commit | ed714b1b52828ad1aa0094a98c392b04dd9c4588 (patch) | |
tree | e537ae70127593bb7513f7b9b39b9c8c721f6e34 /pandoc.cabal | |
parent | e7b5f2deb51e7df25be314ce4d50f95d5a07ccca (diff) |
cabal: Added http-conduit flag, which allows fetching https resources.
It also brings in a large number of dependencies (http-conduit and its
dependencies), which is why for now it is an optional flag.
Closes #820.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r-- | pandoc.cabal | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index 95bf3836b..96f15297f 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -224,6 +224,10 @@ Flag embed_data_files Description: Embed data files in binary for relocatable executable. Default: False +Flag http-conduit + Description: Enable downloading of resources over https. + Default: True + Library Build-Depends: base >= 4.2 && <5, syb >= 0.1 && < 0.5, @@ -262,6 +266,10 @@ Library yaml >= 0.8.3 && < 0.9, vector >= 0.10 && < 0.11, hslua >= 0.3 && < 0.4 + if flag(http-conduit) + Build-Depends: http-conduit >= 1.9 && < 1.10, + http-types >= 0.8 && < 0.9 + cpp-options: -DHTTP_CONDUIT if flag(embed_data_files) cpp-options: -DEMBED_DATA_FILES -- build-tools: hsb2hs |