proto-lens 0.1.0.1 → 0.1.0.2
raw patch · 2 files changed
+2/−3 lines, 2 filesnew-uploaderPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.ProtoLens.Message: def :: a
+ Data.ProtoLens.Message: def :: Default a => a
Files
- proto-lens.cabal +1/−1
- src/Data/ProtoLens/TextFormat.hs +1/−2
proto-lens.cabal view
@@ -1,5 +1,5 @@ name: proto-lens-version: 0.1.0.1+version: 0.1.0.2 synopsis: A lens-based implementation of protocol buffers in Haskell. description: The proto-lens library provides to protocol buffers using modern
src/Data/ProtoLens/TextFormat.hs view
@@ -88,8 +88,7 @@ pprintFieldValue :: String -> FieldTypeDescriptor value -> value -> Doc pprintFieldValue name MessageField m = sep [text name <+> lbrace, nest 2 (pprintMessage m), rbrace]--- TODO: make this output the enum value name by default-pprintFieldValue name EnumField x = primField name $ fromEnum x+pprintFieldValue name EnumField x = text name <> colon <+> text (showEnum x) pprintFieldValue name Int32Field x = primField name x pprintFieldValue name Int64Field x = primField name x pprintFieldValue name UInt32Field x = primField name x