Skip to content

Instantly share code, notes, and snippets.

@Sinha-Ujjawal
Created September 10, 2022 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sinha-Ujjawal/b65798b0cd8f8a81566945182e658a1c to your computer and use it in GitHub Desktop.
Save Sinha-Ujjawal/b65798b0cd8f8a81566945182e658a1c to your computer and use it in GitHub Desktop.
Either Type in Haskell
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