const package:streamly-core

Make a scan that yields the supplied value on any input. Pre-release
Make a scan that runs the supplied effect once and then yields the result on any input. Pre-release
Experimental In sum types, use Latin-1 encoded original constructor names rather than binary values to identify constructors. This option is not applicable to product types. This option enables the following behavior:
  • Reordering: Order of the fields can be changed without affecting serialization.
  • Addition: If a field is added in the new version, the old version of the data type can still be deserialized by the new version. The new value would never occur in the old one.
  • Deletion: If a field is deleted in the new version, deserialization of the old version will result in an error. TBD: We can possibly designate a catch-all case to handle this scenario.
Note that if you change a type, change the semantics of a type, or delete a field and add a new field with the same name, deserialization of old data may result in silent unexpected behavior. This option has to be the same on both encoding and decoding side. The default is False.