Created
January 3, 2017 23:12
-
-
Save rntz/54fa55a9f8fc03d281da589fc23f643f to your computer and use it in GitHub Desktop.
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
{-# LANGUAGE DatatypeContexts #-} | |
module Tmp where | |
data Ord a => Set a = Empty | |
| Single a | |
| Union (Set a) (Set a) | |
instance Monad Set where | |
return x = Single x -- type errors b/c can't find Ord instance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment