aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2015-07-30 22:39:25 +0100
committerSergei Trofimovich <siarheit@google.com>2015-07-30 22:39:25 +0100
commitab7c5f22213d2963ea6dbbf2267a4a6ec7d5774d (patch)
treedffe260d07da66885810b20587e4699e194c4476 /src/Text
parent0baaa1080a5e937bf8b3c301fbe5db08145b58b4 (diff)
downloadpandoc-ab7c5f22213d2963ea6dbbf2267a4a6ec7d5774d.tar.gz
fix build failure with --flags=-https
The issue was originally reported by CasperVector as https://github.com/gentoo-haskell/gentoo-haskell/issues/427 Mainfests itself as a builg failure full of missing zip-archive names: src/Text/Pandoc/Shared.hs:756:49: Not in scope: type constructor or class ‘Archive’ src/Text/Pandoc/Shared.hs:777:38: Not in scope: ‘toEntry’ src/Text/Pandoc/Shared.hs:786:19: Not in scope: ‘toArchive’ Perhaps you meant ‘mbArchive’ (line 778) Included Codec.Archive.Zip unconditionally. Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Shared.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index c09c2f2a0..07a7e962c 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -136,6 +136,8 @@ import qualified Data.Text as T (toUpper, pack, unpack)
import Data.ByteString.Lazy (toChunks, fromChunks)
import qualified Data.ByteString.Lazy as BL
+import Codec.Archive.Zip
+
#ifdef EMBED_DATA_FILES
import Text.Pandoc.Data (dataFiles)
#else
@@ -155,7 +157,6 @@ import Network.HTTP.Client.TLS (tlsManagerSettings)
import System.Environment (getEnv)
import Network.HTTP.Types.Header ( hContentType)
import Network (withSocketsDo)
-import Codec.Archive.Zip
#else
import Network.URI (parseURI)
import Network.HTTP (findHeader, rspBody,