Skip to content

Instantly share code, notes, and snippets.

@gabro
Created December 17, 2012 20:57
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 gabro/4322163 to your computer and use it in GitHub Desktop.
Save gabro/4322163 to your computer and use it in GitHub Desktop.
A parametric algebraic data type in Haskell
data UnionFindElement valueType =
RootElement valueType |
ElementWithParent valueType (UnionFindElement valueType)
deriving (Eq, Show)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment