Created
October 29, 2018 14:38
-
-
Save cemerick/9d277f4b5b556f93fcf336842a436405 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
class Foo a where | |
bar :: a -> String | |
instance {-# OVERLAPPING #-} Foo String where | |
bar = id | |
instance (Num a, Show a) => Foo a where | |
bar = show |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment