cereal package:construct

A quick way to format a value that already has an appropriate Serialize instance
>>> testParse (cereal @Word16) (ByteString.pack [1,2,3])
Right [(258,"\ETX")]

>>> testSerialize cereal (1025 :: Word16)
Right "\EOT\SOH"
Specifying a formatter explicitly using the cereal getter and putter
>>> testParse (cereal' getWord16le putWord16le) (ByteString.pack [1,2,3])
Right [(513,"\ETX")]