-- | Serialize a value as a lazy 'L.ByteString'.
encode :: ToEDN a => a -> L.ByteString
encode = encodeUtf8 . toLazyText . fromTagged 0 . toEDN
encode :: ToEDN a => a -> L.ByteString
encode = encodeUtf8 . toLazyText . fromTagged 0 . toEDN
encode = encodeUtf8 . toLazyText . fromTagged 0 . toEDN