Skip to content

Instantly share code, notes, and snippets.

@davidhq
Created October 17, 2015 18:53
Show Gist options
  • Save davidhq/a2b7313d16a9ea909938 to your computer and use it in GitHub Desktop.
Save davidhq/a2b7313d16a9ea909938 to your computer and use it in GitHub Desktop.
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"
@davidhq
Copy link
Author

davidhq commented Oct 17, 2015

Error:
Error in module My.Data.List:
Error at /Users/david/Projects/playground/purescript/list.purs line 5, column 1 - line 7, column 14:
  Unknown type class Show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment