forked from docopt/docopt.hs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade(ghc): changes necessary for ghc 8.10 and 9.0 compatibility (d…
…ocopt#44) * cabal: set default-language, silence warning * stack: bump to lts-18.10 (ghc 8.10.7) * stack: don't require nix by default * fix warnings, drop th-lift, require ghc 8.0+ * allow template-haskell 2.17.0.0, build with stackage nightly (ghc 9.0.1) * bump version to 0.7.0.7, draft changelog * don't bother version-controlling stack.yaml.lock
- Loading branch information
1 parent
4ad777b
commit bdc4c67
Showing
8 changed files
with
34 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ cabal.sandbox.config | |
# extra | ||
tmp | ||
.stack-work | ||
stack.yaml.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
{-# LANGUAGE TemplateHaskell #-} | ||
{-# LANGUAGE DeriveLift#-} | ||
{-# LANGUAGE StandaloneDeriving #-} | ||
{-# LANGUAGE FlexibleInstances #-} | ||
|
||
{-# OPTIONS_GHC -fno-warn-orphans #-} | ||
{-# OPTIONS_HADDOCK hide, prune #-} | ||
|
||
module System.Console.Docopt.QQ.Instances where | ||
|
||
import System.Console.Docopt.Types | ||
import Language.Haskell.TH.Lift | ||
|
||
import qualified Data.Map as M | ||
|
||
instance (Lift k, Lift v) => Lift (M.Map k v) where | ||
lift m = [| M.fromList assoc |] | ||
where assoc = M.toList m | ||
import Language.Haskell.TH.Syntax (Lift) | ||
import Data.Map.Internal (Map(..)) | ||
|
||
$(deriveLiftMany [ ''Option | ||
, ''Pattern | ||
, ''OptionInfo | ||
, ''Docopt | ||
]) | ||
deriving instance Lift (Map Option OptionInfo) | ||
deriving instance Lift (Docopt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
# For advanced use and comprehensive documentation of the format, please see: | ||
# http://docs.haskellstack.org/en/stable/yaml_configuration/ | ||
|
||
resolver: lts-16.20 | ||
# ghc 8.10.7 | ||
resolver: lts-18.10 | ||
# ghc 9.0.1 | ||
# resolver: nightly-2021-07-16 | ||
|
||
packages: | ||
- '.' | ||
- examples/ | ||
|
||
# Uncomment to test https://github.com/docopt/docopt.hs/issues/29 | ||
# extra-deps: | ||
# - aeson-1.0.2.0 | ||
# flags: | ||
# aeson: | ||
# fast: true | ||
|
||
nix: | ||
enable: true | ||
# nix: | ||
# enable: true |
This file was deleted.
Oops, something went wrong.