Created
October 17, 2015 18:53
-
-
Save davidhq/a2b7313d16a9ea909938 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module My.Data.List where | |
data List a = Cons a (List a) | Nil | |
instance showList :: (Show a) => Show (List a) where | |
show (Cons x xs) = (show x) ++ " : " ++ show xs | |
show Nil = "Nil" |
Author
davidhq
commented
Oct 17, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment