@@ -64,6 +64,9 @@ Flag executable
6464Flag library
6565 Description: Build the pandoc library.
6666 Default: True
67+Flag utf8
68+ Description: Compile in support for UTF-8 input and output.
69+ Default: True
6770
6871Library
6972 if flag(splitBase)
@@ -73,7 +76,10 @@ Library
7376 if flag(highlighting)
7477 Build-depends: highlighting-kate
7578 cpp-options: -DHIGHLIGHTING
76− Build-Depends: parsec < 3, xhtml, mtl, network, filepath, process, directory, utf8-string,
79+ if flag(utf8)
80+ Build-depends: utf8-string
81+ cpp-options: -DUTF_8
82+ Build-Depends: parsec < 3, xhtml, mtl, network, filepath, process, directory,
7783 template-haskell, bytestring
7884 Hs-Source-Dirs: .
7985 Exposed-Modules: Text.Pandoc,
@@ -125,6 +131,8 @@ Executable pandoc
125131 Ghc-Options: -O2 -Wall -threaded
126132 Ghc-Prof-Options: -auto-all
127133
134+ if flag(utf8)
135+ cpp-options: -DUTF_8
128136 if flag(executable)
129137 Buildable: True
130138 else