From a154c392cdccfe52f829ceec3d83260b289ab934 Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Sat, 1 May 2021 19:09:44 +0000 Subject: [PATCH] Add note about `maybeTryCast` and `eitherTryCast` --- src/lib/Witch/TryCast.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/Witch/TryCast.hs b/src/lib/Witch/TryCast.hs index 5d05080..f6abc44 100644 --- a/src/lib/Witch/TryCast.hs +++ b/src/lib/Witch/TryCast.hs @@ -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