How to write a show
implementation for a custom type? (aka shadowed binding)
#290
tom-sherman
started this conversation in
General
Replies: 1 comment 5 replies
-
So the problem is that
The error from the compiler was mostly a red herring. My implementation ended up like this:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a type and I'm trying to write a show implementation for it:
However the last line gets me a type error:
I've come across this error of shadowed binding a few times now, how can I get around it?
Beta Was this translation helpful? Give feedback.
All reactions