on master help sign in
Add Serialize instance for () type
commita27e20d3efca77dfab83acf6424af13fe2eb0897 authorAdithya Kumar <adithya@composewell.com> dateFri 15 Sep 2023, 01:12 (3 years ago) parentf744ebb
1 file changed+1
core/src/Streamly/Internal/Data/Serialize/Type.hs+1
core/src/Streamly/Internal/Data/Serialize/Type.hs+1
@@ -196,6 +196,7 @@ instance Serialize _type where \
196196; serialize = \
197197 serializeUnsafe :: Int -> MutableByteArray -> _type -> IO Int
198198
199+DERIVE_SERIALIZE_FROM_UNBOX(())
199200DERIVE_SERIALIZE_FROM_UNBOX(Bool)
200201DERIVE_SERIALIZE_FROM_UNBOX(Char)
201202DERIVE_SERIALIZE_FROM_UNBOX(Int8)