Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created October 29, 2018 14:38
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 cemerick/9d277f4b5b556f93fcf336842a436405 to your computer and use it in GitHub Desktop.
Save cemerick/9d277f4b5b556f93fcf336842a436405 to your computer and use it in GitHub Desktop.
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