composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
864 stars 66 forks source link

Change signature of Serialize::size #2536

Closed harendra-kumar closed 9 months ago

harendra-kumar commented 1 year ago
size :: a -> Sum Int
adithyaov commented 1 year ago

It should be Int -> a -> Int or a variant of that kind. Or a -> Sum (Int -> Int). We should have a Sum builder.

adithyaov commented 1 year ago

See https://github.com/composewell/streamly/pull/2574