Skip to content

Instantly share code, notes, and snippets.

@rblaze
Created January 24, 2015 07:16
Show Gist options
  • Save rblaze/d4e88bff2069fd7b0e9e to your computer and use it in GitHub Desktop.
Save rblaze/d4e88bff2069fd7b0e9e to your computer and use it in GitHub Desktop.
class BaseC t where
foo :: t -> Int
class BaseC t => ImmedC t where
bar :: t -> Int
class ImmedC t => ChildC t where
buz :: t -> Float
instance BaseC Base
instance BaseC Immed
instance BaseC Child
instance ImmedC Immed
instance ImmedC Child
instance ChildC Child
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment