packages feed

proto-lens-protoc 0.7.1.0 → 0.7.1.1

raw patch · 3 files changed

+21/−8 lines, 3 filesdep ~basedep ~bytestringdep ~ghcPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, bytestring, ghc, text

API changes (from Hackage documentation)

Files

Changelog.md view
@@ -1,5 +1,8 @@ # Changelog for `proto-lens-protoc` +## v0.7.1.1+- Relax upper bounds for ghc-9.2+ ## v0.7.1.0 - Support GHC 9.0. - Add ServiceDescriptor to generated services. (#409)
app/Data/ProtoLens/Compiler/Generate.hs view
@@ -35,14 +35,19 @@ #else import HsSyn (ideclName, ideclAs) #endif+#if MIN_VERSION_ghc(9,2,0)+import GHC.Parser.Annotation (EpAnn(EpAnnNotUsed), SrcSpanAnn'(SrcSpanAnn))+#endif #if MIN_VERSION_ghc(9,0,0) import GHC.Unit.Module.Name (moduleNameString, mkModuleName) import qualified GHC.Utils.Outputable as Outputable-import GHC.Types.SrcLoc (unLoc, noLoc)+import GHC.Types.SrcLoc (unLoc)+import qualified GHC.Types.SrcLoc as SrcLoc #else import Module (moduleNameString, mkModuleName) import qualified Outputable-import SrcLoc (unLoc, noLoc)+import SrcLoc (unLoc)+import qualified SrcLoc #endif import Lens.Family2 ((^.)) import Text.Printf (printf)@@ -203,6 +208,11 @@ reexported :: ModifyImports reexported imp = imp { ideclName = noLoc m', ideclAs = Just m }   where+#if MIN_VERSION_ghc(9,2,0)+    noLoc = SrcLoc.L (SrcSpanAnn EpAnnNotUsed SrcLoc.noSrcSpan)+#else+    noLoc = SrcLoc.noLoc+#endif     m' = mkModuleName $ "Data.ProtoLens.Runtime." ++ moduleNameString (unLoc m)     m = ideclName imp 
proto-lens-protoc.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           proto-lens-protoc-version:        0.7.1.0+version:        0.7.1.1 synopsis:       Protocol buffer compiler for the proto-lens library. description:    Turn protocol buffer files (.proto) into Haskell files (.hs) which can be used with the proto-lens package.                 The library component of this package contains compiler code (namely Data.ProtoLens.Compiler.*) is not guaranteed to have stable APIs.'@@ -34,7 +34,7 @@   hs-source-dirs:       src   build-depends:-      base >=4.9 && <4.16+      base >=4.9 && <4.17     , filepath >=1.4 && <1.6   default-language: Haskell2010 @@ -55,11 +55,11 @@   hs-source-dirs:       app   build-depends:-      base >=4.9 && <4.16-    , bytestring ==0.10.*+      base >=4.9 && <4.17+    , bytestring >=0.10 && <0.12     , containers >=0.5 && <0.7     , filepath >=1.4 && <1.6-    , ghc >=8.2 && <9.1+    , ghc >=8.2 && <9.3     , ghc-paths ==0.1.*     , ghc-source-gen ==0.4.*     , lens-family >=1.2 && <2.2@@ -67,5 +67,5 @@     , proto-lens ==0.7.*     , proto-lens-protoc     , proto-lens-runtime ==0.7.*-    , text ==1.2.*+    , text >=1.2 && <2.1   default-language: Haskell2010