Skip to content

Support template-haskell and tests on GHC < 8.8 #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions System/Console/Docopt/Public.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{-# LANGUAGE CPP #-}

module System.Console.Docopt.Public
(
-- * Command line arguments parsers
Expand Down Expand Up @@ -42,6 +44,10 @@ module System.Console.Docopt.Public

import System.Exit

#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail)
#endif

import Data.Map as M hiding (null)
import Data.Maybe (fromMaybe)
import System.Console.Docopt.Types
Expand Down
13 changes: 6 additions & 7 deletions docopt.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ library

build-depends: base >= 4.9 && < 5.0,
parsec >= 3.1.14 && < 3.2,
containers >= 0.6.2 && < 0.7
containers >= 0.6.2 && < 0.6.6

ghc-options: -Wall
-fno-warn-unused-binds
Expand All @@ -57,7 +57,7 @@ library
exposed-modules: System.Console.Docopt
other-modules: System.Console.Docopt.QQ
System.Console.Docopt.QQ.Instances
build-depends: template-haskell >= 2.15.0 && < 2.18
build-depends: template-haskell >= 2.11.0 && < 2.18

default-language: Haskell2010

Expand All @@ -74,17 +74,16 @@ test-suite tests
-fno-warn-orphans

build-depends: base,
parsec >= 3.1.14 && < 3.2,
containers >= 0.6.2 && < 0.7,
parsec,
containers,
docopt,
HUnit,
split,
ansi-terminal,
ansi-terminal >= 0.4,
aeson,
bytestring,
text,
template-haskell >= 2.15.0 && < 2.18

template-haskell >= 2.11.0 && < 2.18

other-modules: System.Console.Docopt
System.Console.Docopt.ApplicativeParsec
Expand Down