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>
This commit is contained in:
parent
0baaa1080a
commit
ab7c5f2221
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue