mirror of
https://github.com/tfausak/witch.git
synced 2024-11-22 14:58:13 +03:00
Add note about maybeTryCast
and eitherTryCast
This commit is contained in:
parent
ba95e3ceb2
commit
a154c392cd
@ -15,4 +15,7 @@ class TryCast source target where
|
||||
-- | This method implements the conversion of a value between types. At call
|
||||
-- sites you will usually want to use @tryFrom@ or @tryInto@ instead of this
|
||||
-- method.
|
||||
--
|
||||
-- Consider using @maybeTryCast@ or @eitherTryCast@ to implement this
|
||||
-- method.
|
||||
tryCast :: source -> Either (TryCastException.TryCastException source target) target
|
||||
|
Loading…
Reference in New Issue
Block a user