@@ -540,7 +540,7 @@ vectorToPy vec = runProgram $ do
540540 n_c = fromIntegral n :: CLLong
541541
542542
543- -- | @since 0.1.2 @. Converted to @bytes@
543+ -- | @since NEXT_VERSION @. Converted to @bytes@
544544instance ToPy BS. ByteString where
545545 basicToPy bs = pyIO $ BS. unsafeUseAsCStringLen bs $ \ (ptr,len) -> do
546546 let c_len = fromIntegral len :: CLLong
@@ -549,7 +549,7 @@ instance ToPy BS.ByteString where
549549 NULL -> unsafeRunPy mustThrowPyError
550550 _ -> return py
551551
552- -- | @since 0.1.2 @. Accepts @bytes@ and @bytearray@
552+ -- | @since NEXT_VERSION @. Accepts @bytes@ and @bytearray@
553553instance FromPy BS. ByteString where
554554 basicFromPy py = pyIO $ do
555555 [CU. exp | int { PyBytes_Check($(PyObject* py)) } |] >>= \ case
@@ -569,15 +569,15 @@ instance FromPy BS.ByteString where
569569 copyBytes hs_buf py_buf sz
570570 BS. unsafePackMallocCStringLen (hs_buf, sz)
571571
572- -- | @since 0.1.2 @. Converted to @bytes@
572+ -- | @since NEXT_VERSION @. Converted to @bytes@
573573instance ToPy BL. ByteString where
574574 basicToPy = basicToPy . BL. toStrict
575575
576- -- | @since 0.1.2 @. Accepts @bytes@ and @bytearray@
576+ -- | @since NEXT_VERSION @. Accepts @bytes@ and @bytearray@
577577instance FromPy BL. ByteString where
578578 basicFromPy = fmap BL. fromStrict . basicFromPy
579579
580-
580+ -- | @since NEXT_VERSION@.
581581instance ToPy T. Text where
582582 -- NOTE: Is there ore efficient way to access
583583 basicToPy str = pyIO $ BS. unsafeUseAsCStringLen bs $ \ (ptr,len) -> do
@@ -589,10 +589,11 @@ instance ToPy T.Text where
589589 where
590590 bs = T. encodeUtf8 str
591591
592+ -- | @since NEXT_VERSION@.
592593instance ToPy TL. Text where
593594 basicToPy = basicToPy . TL. toStrict
594595
595-
596+ -- | @since NEXT_VERSION@.
596597instance FromPy T. Text where
597598 basicFromPy py = pyIO $ do
598599 [CU. exp | int { PyUnicode_Check($(PyObject* py)) } |] >>= \ case
@@ -603,6 +604,7 @@ instance FromPy T.Text where
603604 return $! T. decodeUtf8Lenient bs
604605 _ -> throwM BadPyType
605606
607+ -- | @since NEXT_VERSION@.
606608instance FromPy TL. Text where
607609 basicFromPy = fmap TL. fromStrict . basicFromPy
608610
0 commit comments