Fix some typos

This commit is contained in:
Taylor Fausak 2021-04-18 19:44:05 +00:00 committed by GitHub
parent d7f2bf9ed0
commit 67a3cc53d5
4 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@ liftedCast = TH.liftTyped . Utility.unsafeCast
-- > unsafeFrom @s "some literal"
-- >
-- > -- Prefer this:
-- > $$(liftedCast @s "some literal")
-- > $$(liftedFrom @s "some literal")
liftedFrom
:: forall s target source
. ( Identity.Identity s ~ source
@ -58,7 +58,7 @@ liftedFrom = liftedCast
-- > unsafeInto @t "some literal"
-- >
-- > -- Prefer this:
-- > $$(liftedCast @t "some literal")
-- > $$(liftedInto @t "some literal")
liftedInto
:: forall t source target
. ( Identity.Identity t ~ target

View File

@ -37,7 +37,7 @@ liftedCast s = TH.unsafeTExpCoerce $ TH.lift (Utility.unsafeCast s :: target)
-- > unsafeFrom @s "some literal"
-- >
-- > -- Prefer this:
-- > $$(liftedCast @s "some literal")
-- > $$(liftedFrom @s "some literal")
liftedFrom
:: forall s target source
. ( Identity.Identity s ~ source
@ -58,7 +58,7 @@ liftedFrom = liftedCast
-- > unsafeInto @t "some literal"
-- >
-- > -- Prefer this:
-- > $$(liftedCast @t "some literal")
-- > $$(liftedInto @t "some literal")
liftedInto
:: forall t source target
. ( Identity.Identity t ~ target

View File

@ -38,7 +38,7 @@ liftedCast = TH.liftTyped . Utility.unsafeCast
-- > unsafeFrom @s "some literal"
-- >
-- > -- Prefer this:
-- > $$(liftedCast @s "some literal")
-- > $$(liftedFrom @s "some literal")
liftedFrom
:: forall s target m source
. ( Identity.Identity s ~ source
@ -60,7 +60,7 @@ liftedFrom = liftedCast
-- > unsafeInto @t "some literal"
-- >
-- > -- Prefer this:
-- > $$(liftedCast @t "some literal")
-- > $$(liftedInto @t "some literal")
liftedInto
:: forall t source m target
. ( Identity.Identity t ~ target

View File

@ -1018,7 +1018,7 @@ instance Cast.Cast ShortByteString.ShortByteString ByteString.ByteString where
-- Text
-- | Uses 'Text.pack'. Some 'Char' values cannot be represented in 'Text.Text'
-- and will be replaced with '\xFFFD'.
-- and will be replaced with @'\\xFFFD'@.
instance Cast.Cast String Text.Text where
cast = Text.pack
@ -1037,7 +1037,7 @@ instance Cast.Cast Text.Text ByteString.ByteString where
-- LazyText
-- | Uses 'LazyText.pack'. Some 'Char' values cannot be represented in
-- 'LazyText.Text' and will be replaced with '\xFFFD'.
-- 'LazyText.Text' and will be replaced with @'\\xFFFD'@.
instance Cast.Cast String LazyText.Text where
cast = LazyText.pack