Skip to content

Commit 54ce31b

Browse files
Merge pull request #58 from docopt/containers-upgrade
Support newer `containers` and GHC
2 parents a2e8653 + d5d835d commit 54ce31b

3 files changed

Lines changed: 16 additions & 19 deletions

File tree

System/Console/Docopt/QQ/Instances.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DeriveLift#-}
23
{-# LANGUAGE StandaloneDeriving #-}
34
{-# LANGUAGE FlexibleInstances #-}
@@ -9,7 +10,10 @@ module System.Console.Docopt.QQ.Instances where
910

1011
import System.Console.Docopt.Types
1112
import Language.Haskell.TH.Syntax (Lift)
12-
import Data.Map.Internal (Map(..))
1313

14+
#if !MIN_VERSION_containers(0,6,6)
15+
import Data.Map.Internal (Map(..))
1416
deriving instance Lift (Map Option OptionInfo)
17+
#endif
18+
1519
deriving instance Lift (Docopt)

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.7,
46+
template-haskell >= 2.11.0 && < 2.22
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

stack.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# http://docs.haskellstack.org/en/stable/yaml_configuration/
33

44
# ghc 8.10.7
5-
resolver: lts-18.10
6-
# ghc 9.0.1
7-
# resolver: nightly-2021-07-16
8-
5+
# resolver: lts-18.10
6+
# ghc 9.6.1
7+
resolver: lts-22.11
8+
# ghc 9.8.1
9+
# resolver: nightly-2024-02-22
910
packages:
1011
- '.'
1112
- examples/

0 commit comments

Comments
 (0)