Created
September 10, 2022 13:19
-
-
Save Sinha-Ujjawal/b65798b0cd8f8a81566945182e658a1c to your computer and use it in GitHub Desktop.
Either Type in Haskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Either a b = Left a | Right b | |
-- Implicit functions | |
-- Left :: a -> Either a b | |
-- Right :: b -> Either a b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment