mu-protobuf 0.1.0.0 → 0.2.0.0
raw patch · 1 files changed
+56/−48 lines, 1 filesdep ~compendium-clientdep ~mu-protobufdep ~mu-rpcnew-uploaderPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: compendium-client, mu-protobuf, mu-rpc, mu-schema
API changes (from Hackage documentation)
+ Mu.Adapter.ProtoBuf: instance Proto3.Wire.Class.ProtoEnum GHC.Types.Bool
- Mu.Adapter.ProtoBuf.Via: ViaFromProtoBufTypeRef :: t -> ViaFromProtoBufTypeRef t
+ Mu.Adapter.ProtoBuf.Via: ViaFromProtoBufTypeRef :: t -> ViaFromProtoBufTypeRef (ref :: TypeRef) t
- Mu.Adapter.ProtoBuf.Via: ViaToProtoBufTypeRef :: t -> ViaToProtoBufTypeRef t
+ Mu.Adapter.ProtoBuf.Via: ViaToProtoBufTypeRef :: t -> ViaToProtoBufTypeRef (ref :: TypeRef) t
- Mu.Adapter.ProtoBuf.Via: [unViaFromProtoBufTypeRef] :: ViaFromProtoBufTypeRef t -> t
+ Mu.Adapter.ProtoBuf.Via: [unViaFromProtoBufTypeRef] :: ViaFromProtoBufTypeRef (ref :: TypeRef) t -> t
- Mu.Adapter.ProtoBuf.Via: [unViaToProtoBufTypeRef] :: ViaToProtoBufTypeRef t -> t
+ Mu.Adapter.ProtoBuf.Via: [unViaToProtoBufTypeRef] :: ViaToProtoBufTypeRef (ref :: TypeRef) t -> t
- Mu.Quasi.ProtoBuf.Example: type Example2ProtoBufSchema = '[ 'DEnum "gender" '[ 'ChoiceDef "male", 'ChoiceDef "female", 'ChoiceDef "nonbinary"], 'DRecord "person" '[ 'FieldDef "names" ( 'TList ( 'TPrimitive Text)), 'FieldDef "age" ( 'TPrimitive Int32), 'FieldDef "gender" ( 'TSchematic "gender")]]
+ Mu.Quasi.ProtoBuf.Example: type Example2ProtoBufSchema = '[ 'DEnum "gender" '[ 'ChoiceDef "male", 'ChoiceDef "female", 'ChoiceDef "nonbinary"], 'DRecord "person" '[ 'FieldDef "names" ('TList ('TPrimitive Text)), 'FieldDef "age" ('TPrimitive Int32), 'FieldDef "gender" ('TSchematic "gender")]]
- Mu.Quasi.ProtoBuf.Example: type ExampleProtoBufSchema = '[ 'DRecord "person" '[ 'FieldDef "firstName" ( 'TPrimitive Text), 'FieldDef "lastName" ( 'TPrimitive Text), 'FieldDef "age" ( 'TPrimitive Int32), 'FieldDef "gender" ( 'TSchematic "gender"), 'FieldDef "address" ( 'TSchematic "address")], 'DRecord "address" '[ 'FieldDef "postcode" ( 'TPrimitive Text), 'FieldDef "country" ( 'TPrimitive Text)], 'DEnum "gender" '[ 'ChoiceDef "nb", 'ChoiceDef "male", 'ChoiceDef "female"]]
+ Mu.Quasi.ProtoBuf.Example: type ExampleProtoBufSchema = '[ 'DRecord "person" '[ 'FieldDef "firstName" ('TPrimitive Text), 'FieldDef "lastName" ('TPrimitive Text), 'FieldDef "age" ('TPrimitive Int32), 'FieldDef "gender" ('TSchematic "gender"), 'FieldDef "address" ('TSchematic "address")], 'DRecord "address" '[ 'FieldDef "postcode" ('TPrimitive Text), 'FieldDef "country" ('TPrimitive Text)], 'DEnum "gender" '[ 'ChoiceDef "nb", 'ChoiceDef "male", 'ChoiceDef "female"]]
Files
- mu-protobuf.cabal +56/−48
mu-protobuf.cabal view
@@ -1,56 +1,64 @@-cabal-version: >=1.10-name: mu-protobuf-version: 0.1.0.0-synopsis: Protocol Buffers serialization and gRPC schema import for Mu microservices-description: You can use @mu-protobuf@ to read Protobuf Schema Declarations and services for mu-haskell-license: Apache-2.0-license-file: LICENSE-author: Alejandro Serrano, Flavio Corpa-maintainer: alejandro.serrano@47deg.com-copyright: Copyright © 2019-2020 <http://47deg.com 47 Degrees>-category: Network-build-type: Simple-data-files: test/protobuf/*.proto-homepage: https://higherkindness.io/mu-haskell/-bug-reports: https://github.com/higherkindness/mu-haskell/issues+name: mu-protobuf+version: 0.2.0.0+synopsis:+ Protocol Buffers serialization and gRPC schema import for Mu microservices +description:+ You can use @mu-protobuf@ to read Protobuf Schema Declarations and services for mu-haskell++license: Apache-2.0+license-file: LICENSE+author: Alejandro Serrano, Flavio Corpa+maintainer: alejandro.serrano@47deg.com+copyright: Copyright © 2019-2020 <http://47deg.com 47 Degrees>+category: Network+build-type: Simple+cabal-version: >=1.10+data-files: test/protobuf/*.proto+homepage: https://higherkindness.io/mu-haskell/+bug-reports: https://github.com/higherkindness/mu-haskell/issues+ source-repository head type: git location: https://github.com/higherkindness/mu-haskell library- exposed-modules: Mu.Adapter.ProtoBuf- , Mu.Adapter.ProtoBuf.Via- , Mu.Quasi.ProtoBuf- , Mu.Quasi.GRpc- , Mu.Quasi.ProtoBuf.Example- build-depends: base >=4.12 && <5- , mu-schema- , mu-rpc- , text- , sop-core- , proto3-wire- , bytestring- , template-haskell >= 2.12- , language-protobuf- , compendium-client- , http-client- , servant-client-core- , http2-grpc-proto3-wire- hs-source-dirs: src- default-language: Haskell2010- ghc-options: -Wall- -fprint-potential-instances+ exposed-modules:+ Mu.Adapter.ProtoBuf+ Mu.Adapter.ProtoBuf.Via+ Mu.Quasi.GRpc+ Mu.Quasi.ProtoBuf+ Mu.Quasi.ProtoBuf.Example + build-depends:+ base >=4.12 && <5+ , bytestring+ , compendium-client >=0.2.0+ , http-client+ , http2-grpc-proto3-wire+ , language-protobuf+ , mu-rpc >=0.2.0+ , mu-schema >=0.2.0+ , proto3-wire+ , servant-client-core+ , sop-core+ , template-haskell >=2.12+ , text++ hs-source-dirs: src+ default-language: Haskell2010+ ghc-options: -Wall -fprint-potential-instances+ executable test-protobuf- main-is: ProtoBuf.hs- build-depends: base >=4.12 && <5- , mu-schema- , mu-protobuf- , bytestring- , text- , proto3-wire- hs-source-dirs: test- default-language: Haskell2010- ghc-options: -Wall- -fprint-explicit-foralls+ main-is: ProtoBuf.hs+ build-depends:+ base >=4.12 && <5+ , bytestring+ , mu-protobuf >=0.2.0+ , mu-schema >=0.2.0+ , proto3-wire+ , text++ hs-source-dirs: test+ default-language: Haskell2010+ ghc-options: -Wall -fprint-explicit-foralls