Created
October 1, 2013 19:53
-
-
Save LeviSchuck/6784111 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
genericFunction :: (Show a) -> a -> String | |
genericFunction thing = show thing | |
data OneThing = OneThing (deriving Show) | |
data AnotherThing = AnotherThing (deriving Show) | |
data MyFunctions = MyFunctions | |
{ showOne :: OneThing -> String | |
, showAnother :: AnotherThing -> String | |
} | |
currentFunctions = MyFunctions | |
{ showOne = genericFunction | |
, showAnother = genericFunction | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment