We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e29359e commit 7e9f525Copy full SHA for 7e9f525
serialise/src/Codec/Serialise.hs
@@ -153,7 +153,7 @@ hPutSerialise :: Serialise a
153
=> Handle -- ^ The @'Handle'@ to write to.
154
-> a -- ^ The value to be serialised and written.
155
-> IO ()
156
-hPutSerialise hnd x = BS.hPut hnd (serialise x)
+hPutSerialise hnd x = BS.hPutBuilder hnd (CBOR.Write.toBuilder (encode x))
157
158
-- | Serialise a @'BS.ByteString'@ and write it directly to the
159
-- specified file.
0 commit comments