packages feed

ghc-lib-parser-ex 0.20220601 → 0.20220701

raw patch · 7 files changed

+45/−70 lines, 7 filesdep −ghcdep −ghc-bootdep −ghc-boot-thdep ~ghc-lib-parser

Dependencies removed: ghc, ghc-boot, ghc-boot-th

Dependency ranges changed: ghc-lib-parser

Files

ChangeLog.md view
@@ -1,5 +1,21 @@ # Changelog for ghc-lib-parser-ex +## 0.20220701 released+- Update to `ghc-lib-parser-0.20220701`++## 9.2.1.0 released+- The Cabal flag `auto` now defaults to `False`:+  - When `auto` has the value `False`:+    - `ghc-lib-parser-ex` depends on `ghc-lib-parser`+  - When `auto` has the value `True`:+    - When the build compiler is >=9.2.2 && <9.3.0+      - `ghc-lib-parser-ex` depends on the compiler libs+    - Otherwise, `ghc-lib-parser-ex` depends on `ghc-lib-parser`+- Deprecated modues removed:+  - `Language.Haskell.GhclibParserEx.Config`+  - `Language.Haskell.GhclibParserEx.Parse`+  - `Language.Haskell.GhclibParserEx.Outputable`+ ## 0.20220601 released - Update to `ghc-lib-parser-0.20220601` - `fakeLlvmConfig` removed for `GHCLIB_API_HEAD`
README.md view
@@ -18,7 +18,7 @@  ## Building `ghc-lib-parser-ex` -You can build with `stack build` and test with `stack test`. Produce `ghc-lib-parser-ex` package distributions by executing the CI script:+Produce and test `ghc-lib-parser-ex` package distributions by executing the CI script: ```bash # Setup git clone git@github.com:shayne-fletcher/ghc-lib-parser-ex.git
ghc-lib-parser-ex.cabal view
@@ -1,6 +1,6 @@ cabal-version:  1.18 name:           ghc-lib-parser-ex-version:        0.20220601+version:        0.20220701 description:    Please see the README on GitHub at <https://github.com/shayne-fletcher/ghc-lib-parser-ex#readme> homepage:       https://github.com/shayne-fletcher/ghc-lib-parser-ex#readme bug-reports:    https://github.com/shayne-fletcher/ghc-lib-parser-ex/issues@@ -22,7 +22,7 @@   location: https://github.com/shayne-fletcher/ghc-lib-parser-ex  flag auto-  default: True+  default: False   manual: True   description: Use default configuration @@ -50,10 +50,6 @@       Language.Haskell.GhclibParserEx.GHC.Parser       Language.Haskell.GhclibParserEx.GHC.Types.Name.Reader       Language.Haskell.GhclibParserEx.GHC.Utils.Outputable-      -- Deprecated and will be removed in a future release.-      Language.Haskell.GhclibParserEx.Config-      Language.Haskell.GhclibParserEx.Parse-      Language.Haskell.GhclibParserEx.Outputable   other-modules:       Paths_ghc_lib_parser_ex   hs-source-dirs:@@ -63,24 +59,11 @@       uniplate >= 1.5,       bytestring >= 0.10.8.2,       containers >= 0.5.8.1-  if flag(auto) && impl(ghc >= 9.0.0) && impl(ghc < 9.1.0)-    build-depends:-      ghc == 9.0.*,-      ghc-boot-th,-      ghc-boot-  else-    if flag(auto)-      build-depends:-        ghc-lib-parser == 9.0.*-    else-      if flag(no-ghc-lib)-        build-depends:-          ghc,-          ghc-boot-th,-          ghc-boot-      else-        build-depends:-          ghc-lib-parser+  build-depends:+      ghc-lib-parser == 0.20220701+  -- pseduo use of flags to suppress cabal check warnings+  if flag(auto)+  if flag(no-ghc-lib)   include-dirs:       cbits   install-includes:@@ -107,22 +90,9 @@     , extra >=1.6     , uniplate >= 1.6.12     , ghc-lib-parser-ex-  if flag(auto) && impl(ghc >= 9.0.0) && impl(ghc < 9.1.0)-    build-depends:-      ghc == 9.0.*,-      ghc-boot-th,-      ghc-boot-  else-    if flag(auto)-      build-depends:-        ghc-lib-parser == 9.0.*-    else-      if flag(no-ghc-lib)-        build-depends:-          ghc,-          ghc-boot-th,-          ghc-boot-      else-        build-depends:-          ghc-lib-parser+  build-depends:+      ghc-lib-parser == 0.20220701+  -- pseduo use of flags to suppress cabal check warnings+  if flag(auto)+  if flag(no-ghc-lib)   default-language: Haskell2010
− src/Language/Haskell/GhclibParserEx/Config.hs
@@ -1,9 +0,0 @@--- Copyright (c) 2020, Shayne Fletcher. All rights reserved.--- SPDX-License-Identifier: BSD-3-Clause.--module Language.Haskell.GhclibParserEx.Config-  {-# DEPRECATED "Use Language.Haskell.GhclibParserEx.GHC.Settings.Config instead" #-} (-  module Language.Haskell.GhclibParserEx.GHC.Settings.Config-  )-  where-import Language.Haskell.GhclibParserEx.GHC.Settings.Config
src/Language/Haskell/GhclibParserEx/GHC/Hs/Expr.hs view
@@ -60,7 +60,11 @@ isAnyApp x = isApp x || isOpApp x isLexeme = \case (L _ HsVar{}) -> True; (L _ HsOverLit{}) -> True; (L _ HsLit{}) -> True; _ -> False isLambda = \case (L _ HsLam{}) -> True; _ -> False+#if defined (GHCLIB_API_HEAD)+isQuasiQuoteExpr = \case (L _ (HsUntypedSplice _ HsQuasiQuote{})) -> True; _ -> False+#else isQuasiQuoteExpr = \case (L _ (HsSpliceE _ HsQuasiQuote{})) -> True; _ -> False+#endif isQuasiQuote = isQuasiQuoteExpr -- Backwards compat. isDotApp = \case (L _ (OpApp _ _ op _)) -> isDot op; _ -> False isTypeApp = \case (L _ HsAppType{}) -> True; _ -> False@@ -84,9 +88,14 @@ isLCase = \case (L _ HsLamCase{}) -> True; _ -> False isOverLabel = \case (L _ HsOverLabel{}) -> True; _ -> False +#if defined (GHCLIB_API_HEAD)+isQuasiQuoteSplice :: HsUntypedSplice GhcPs -> Bool+#else isQuasiQuoteSplice :: HsSplice GhcPs -> Bool+#endif isQuasiQuoteSplice = \case HsQuasiQuote{} -> True; _ -> False + #if defined (GHCLIB_API_HEAD) || defined (GHCLIB_API_904) || defined(GHCLIB_API_902) || defined (GHCLIB_API_901) isStrictMatch :: HsMatchContext GhcPs -> Bool #else@@ -165,7 +174,14 @@   _ -> False  isSpliceDecl :: HsExpr GhcPs -> Bool+#if defined (GHCLIB_API_HEAD)+isSpliceDecl = \case+  HsTypedSplice{} -> True+  HsUntypedSplice{} -> True+  _ -> False+#else isSpliceDecl = \case HsSpliceE{} -> True; _ -> False+#endif  isMultiIf :: HsExpr GhcPs -> Bool isMultiIf = \case HsMultiIf{} -> True; _ -> False
− src/Language/Haskell/GhclibParserEx/Outputable.hs
@@ -1,9 +0,0 @@--- Copyright (c) 2020, Shayne Fletcher. All rights reserved.--- SPDX-License-Identifier: BSD-3-Clause.--module Language.Haskell.GhclibParserEx.Outputable-  {-# DEPRECATED "Use Language.Haskell.GhclibParserEx.GHC.Utils.Outputable instead" #-} (-  module Language.Haskell.GhclibParserEx.GHC.Utils.Outputable-  )-  where-import Language.Haskell.GhclibParserEx.GHC.Utils.Outputable
− src/Language/Haskell/GhclibParserEx/Parse.hs
@@ -1,9 +0,0 @@--- Copyright (c) 2020, Shayne Fletcher. All rights reserved.--- SPDX-License-Identifier: BSD-3-Clause.--module Language.Haskell.GhclibParserEx.Parse-  {-# DEPRECATED "Use Language.Haskell.GhclibParserEx.GHC.Parser instead" #-} (-  module Language.Haskell.GhclibParserEx.GHC.Parser-  )-  where-import Language.Haskell.GhclibParserEx.GHC.Parser