Skip to content

Commit 2580dcb

Browse files
Drop support for optional template-haskell
PR #44 (part of v0.7.0.7) introduced `import Language.Haskell.TH.Syntax (Lift)` into `System/Console/Docopt/Types.hs` which broke this flag. Since all supported GHC versions bundle supported `template-haskell` libraries, this flag doesn't have a significant purpose anymore, let's simplify.
1 parent a2e8653 commit 2580dcb

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

docopt.cabal

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,30 @@ source-repository head
2727
type: git
2828
location: https://github.com/docopt/docopt.hs.git
2929

30-
flag template-haskell
31-
default: True
32-
manual: True
33-
description:
34-
Build with QuasiQuoter usage parsers, which requires Template Haskell
35-
3630
library
3731
exposed-modules: System.Console.Docopt.NoTH
32+
System.Console.Docopt
3833

3934
other-modules: System.Console.Docopt.ApplicativeParsec
4035
System.Console.Docopt.ParseUtils
4136
System.Console.Docopt.Types
4237
System.Console.Docopt.UsageParse
4338
System.Console.Docopt.OptParse
4439
System.Console.Docopt.Public
40+
System.Console.Docopt.QQ
41+
System.Console.Docopt.QQ.Instances
4542

4643
build-depends: base >= 4.9 && < 5.0,
4744
parsec >= 3.1.14 && < 3.2,
48-
containers >= 0.6.2 && < 0.6.6
45+
containers >= 0.6.2 && < 0.6.6,
46+
template-haskell >= 2.11.0 && < 2.18
4947

5048
ghc-options: -Wall
5149
-fno-warn-unused-binds
5250
-fno-warn-unused-do-bind
5351
-fno-warn-unused-matches
5452
-fno-warn-name-shadowing
5553

56-
if impl(ghc >= 6.10) && flag(template-haskell)
57-
exposed-modules: System.Console.Docopt
58-
other-modules: System.Console.Docopt.QQ
59-
System.Console.Docopt.QQ.Instances
60-
build-depends: template-haskell >= 2.11.0 && < 2.18
61-
6254
default-language: Haskell2010
6355

6456
test-suite tests
@@ -83,7 +75,7 @@ test-suite tests
8375
aeson,
8476
bytestring,
8577
text,
86-
template-haskell >= 2.11.0 && < 2.18
78+
template-haskell
8779

8880
other-modules: System.Console.Docopt
8981
System.Console.Docopt.ApplicativeParsec

0 commit comments

Comments
 (0)