From 2bad9a9aa4eeb6cd63eef53422751ce5fd307c6b Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 27 Sep 2022 11:25:54 +0200 Subject: pandoc-cli: Avoid the CPP language extension Alternative behavior for the *server* flag is implemented by using separate modules. --- pandoc-cli/pandoc-cli.cabal | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pandoc-cli/pandoc-cli.cabal') diff --git a/pandoc-cli/pandoc-cli.cabal b/pandoc-cli/pandoc-cli.cabal index ddd2a9f52..a7734bd55 100644 --- a/pandoc-cli/pandoc-cli.cabal +++ b/pandoc-cli/pandoc-cli.cabal @@ -27,6 +27,7 @@ flag server common common-options default-language: Haskell2010 + other-extensions: OverloadedStrings build-depends: base >= 4.12 && < 5 ghc-options: -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates @@ -59,9 +60,12 @@ executable pandoc buildable: True build-depends: pandoc, hslua-cli >= 1.1 && < 1.2 + other-modules: PandocCLI.Server if flag(server) build-depends: pandoc-server >= 0.1 && < 0.2, wai-extra >= 3.0.24, warp, safe - cpp-options: -D_SERVER + hs-source-dirs: server + else + hs-source-dirs: no-server -- cgit v1.2.3