Skip to content

Instantly share code, notes, and snippets.

@LeviSchuck
Created August 15, 2013 11:31
Show Gist options
  • Save LeviSchuck/6240143 to your computer and use it in GitHub Desktop.
Save LeviSchuck/6240143 to your computer and use it in GitHub Desktop.
-- Suppose I have this type class
externalFunction :: SomeData -> Blah -> a -> SomethingElse
class Something a where
someConstant :: a -> SomeData
another :: Blah -> a -> SomethingElse
another b a = externalFunction (someConstant (undefined :: "This Type class instance")) b a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment