Created
August 10, 2014 07:09
-
-
Save MnO2/a50bb38b7120b0cebb66 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
data Foo a b = Foo a b | |
class Name f where | |
thyName :: f a b -> String | |
instance Name Foo where | |
thyName _ = "Foo" | |
main :: IO () | |
main = do | |
putStrLn $ thyName (Foo 1 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment