From a2a289eae2d919800947736b6902d28f00166a57 Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Wed, 26 May 2021 08:54:36 -0400 Subject: [PATCH] Add identity `From` instance Fixes #25. --- src/lib/Witch/Instances.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/Witch/Instances.hs b/src/lib/Witch/Instances.hs index 2577443..d4aa72a 100644 --- a/src/lib/Witch/Instances.hs +++ b/src/lib/Witch/Instances.hs @@ -37,6 +37,9 @@ import qualified Witch.TryFrom as TryFrom import qualified Witch.TryFromException as TryFromException import qualified Witch.Utility as Utility +instance From.From a a where + from = id + -- Int8 -- | Uses 'fromIntegral'.