mirror of
https://github.com/tfausak/witch.git
synced 2024-11-26 09:43:03 +03:00
Add documentation to unsafe section
This commit is contained in:
parent
c1c69ef332
commit
6f1c2e671a
@ -26,6 +26,13 @@ module Witch
|
|||||||
, Witch.Utility.tryVia
|
, Witch.Utility.tryVia
|
||||||
|
|
||||||
-- ** Unsafe
|
-- ** Unsafe
|
||||||
|
-- | These functions should only be used in two circumstances: When you know
|
||||||
|
-- a conversion is safe even though you can't prove it to the compiler, and
|
||||||
|
-- when you're alright with your program crashing if the conversion fails.
|
||||||
|
-- In all other cases you should prefer the normal conversion functions like
|
||||||
|
-- 'Witch.Cast.cast'. And if you're converting a literal value, consider
|
||||||
|
-- using the Template Haskell conversion functions like
|
||||||
|
-- 'Witch.Lift.liftedCast'.
|
||||||
, Witch.Utility.unsafeCast
|
, Witch.Utility.unsafeCast
|
||||||
, Witch.Utility.unsafeFrom
|
, Witch.Utility.unsafeFrom
|
||||||
, Witch.Utility.unsafeInto
|
, Witch.Utility.unsafeInto
|
||||||
|
Loading…
Reference in New Issue
Block a user