mirror of
https://github.com/tfausak/witch.git
synced 2024-11-26 09:43:03 +03:00
Fix some typos
This commit is contained in:
parent
d7f2bf9ed0
commit
67a3cc53d5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user