Revert "Change the OID of composites from unknown to record"

This reverts commit 25f05bae79.
This commit is contained in:
Nikita Volkov 2023-10-31 20:04:31 +03:00
parent 25f05bae79
commit 3f85f643f2

View File

@ -304,7 +304,7 @@ array (Array (Array.Array valueOID arrayOID arrayEncoder renderer)) =
-- Lift a composite encoder into a value encoder.
composite :: Composite a -> Value a
composite (Composite encode print) =
Value (Value.unsafePTI PTI.record encodeValue printValue)
Value (Value.unsafePTI PTI.binaryUnknown encodeValue printValue)
where
encodeValue idt val =
A.composite $ encode val idt