packages feed

spire-protobuf

Minimal Protocol Buffers for Haskell, no codegen

view on Hackage

A fast, minimal protobuf library with zero-copy decoding and GHC Generics integration. No code generation, no Template Haskell, no external tools. . Define messages as Haskell records with 'Field' wrappers for field numbers, derive 'Generic' and 'ProtoMessage', and get encode/decode for free. . @ data User = User { name :: Field 1 Text , age :: Field 2 Int32 , email :: Field 3 (Maybe Text) } deriving (Generic, ProtoMessage) @ . Key design decisions: . * Single-pass decoding directly into target type (no intermediate Map) * Zero-copy string\/bytes fields (ByteString slices into input buffer) * Length-memoizing Builder for correct submessage encoding * GHC 9.10 @-finline-generics@ eliminates Generic overhead * 4 dependencies: base, bytestring, text, containers
versionuploadeduploaderchanges
0.1.0.12026-04-29 03:07 UTCjoshburgess+10/−2 lines, 2 files
0.1.0.02026-04-28 00:12 UTCjoshburgess+3219/−0 lines, 12 filesdep +basedep +bytestringdep +containers

Dependencies of spire-protobuf-0.1.0.1

base >=4.20 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

bytestring >=0.11 && <0.13 0.12.1.0 → 0.12.2.0
2024-12-06 21:41 UTC0.12.2.0+538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok
2024-02-16 03:27 UTC0.12.1.0+3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested
2023-08-16 01:53 UTC0.12.0.2+16/−2 lines, 3 files
2023-08-05 00:03 UTC0.12.0.1+47/−9 lines, 3 files
2023-07-07 01:45 UTC0.12.0.0+1459/−520 lines, 21 filesdep +data-array-bytePVP ok

showing 5 of 49 versions

containers >=0.6 && <0.8 0.7 → 0.8.1 newer than bounds
2026-10-04 06:08 UTC0.8.1 newer than bounds+8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested
2025-03-01 13:03 UTC0.8 newer than bounds+8447/−7031 lines, 37 filesnew-uploaderPVP ok
2023-09-27 12:15 UTC0.7+76/−33 lines, 3 filesPVP ok
2023-09-28 04:21 UTC0.6.8+644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested
2023-02-01 03:11 UTC0.6.7+783/−229 lines, 20 filesPVP: major bump suggested

showing 5 of 43 versions

hedgehog >=1.4 && <1.8 1.6 → 1.7
2025-09-22 20:47 UTC1.7+50/−26 lines, 5 filesdep ~lifted-asyncdep ~template-haskelldep ~timePVP ok
2025-09-08 12:45 UTC1.6+87/−63 lines, 4 filesPVP ok
2024-07-24 13:51 UTC1.5+255/−78 lines, 5 filesdep ~containersdep ~randomdep ~template-haskellPVP ok
2023-08-06 21:48 UTC1.4+138/−64 lines, 7 filesdep ~ansi-terminaldep ~barbiesdep ~bytestringPVP ok
2023-06-22 11:22 UTC1.3 outside bounds+152/−29 lines, 11 filesdep +safe-exceptionsdep ~ansi-terminalPVP ok

showing 5 of 28 versions

process >=1.6 && <1.8 1.6.29.0 → 1.6.30.0
2026-06-11 10:14 UTC1.6.30.0+19/−1 lines, 2 filesPVP ok
2026-05-24 11:03 UTC1.6.29.0+5282/−4831 lines, 7 filesdep ~basePVP ok
2026-04-18 12:18 UTC1.6.28.0+70/−33 lines, 3 filesPVP ok
2026-03-08 19:39 UTC1.6.27.0+3/−2 lines, 2 filesPVP ok
2026-03-07 13:46 UTC1.6.26.2+4852/−5346 lines, 7 filesPVP ok

showing 5 of 57 versions

text >=2.0 && <2.2 2.1.4 → 2.1.5
2026-11-27 23:30 UTC2.1.5+33786/−32979 lines, 58 filesPVP: major bump suggested
2026-01-28 08:30 UTC2.1.4+30991/−20199 lines, 35 filesdep +template-haskell-liftdep ~QuickCheckdep ~template-haskellPVP ok
2025-08-01 20:08 UTC2.1.3+2107/−1827 lines, 30 filesdep +splitmixdep +temporarydep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP ok
2024-10-26 13:22 UTC2.1.2+43588/−15378 lines, 41 filesdep ~basedep ~binaryPVP: major bump suggested
2024-02-16 22:16 UTC2.1.1+986/−412 lines, 26 filesdep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP: major bump suggested

showing 5 of 83 versions

Reverse dependencies

1 packages depend on spire-protobuf

acolyte-grpc 0.1.0.1 requires spire-protobuf >=0.1 && <0.2