Created
August 15, 2013 11:31
-
-
Save LeviSchuck/6240143 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
-- 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