Open teto opened 5 years ago
Here is some attempts https://github.com/Ongy/netlink-hs/compare/master...teto:master assuming the data is an instance of Serialize. But it fails in many cases with errors such as
daemon: DiagCong error too few bytes
From: demandInput
CallStack (from HasCallStack):
error, called at IDiag.hs:449:37 in main:IDiag
or
"Unknown encoding for constructor"
(Whend dealing with CongInfo)
or
Error too few bytes
It would be cool if we could have Ghc.Generics support to allow the generation of Convertable's getGet/getPut. It can be very tedious to write this code otherwise.
something like