Skip to content

Instantly share code, notes, and snippets.

@adpoe
Created June 16, 2016 05:27
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 adpoe/e7a25362179d132fa6f4a72863311026 to your computer and use it in GitHub Desktop.
Save adpoe/e7a25362179d132fa6f4a72863311026 to your computer and use it in GitHub Desktop.
Binary Tree in Haskell
data BinaryTree a =
Leaf
| Node (BinaryTree a) a (BinaryTree a)
deriving (Eq, Ord, Show)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment