ndmitchell / debug

Haskell library for debugging
BSD 3-Clause "New" or "Revised" License
122 stars 7 forks source link

Limit number of "shadowed" variables #51

Closed marklnichols closed 6 years ago

marklnichols commented 6 years ago

Situations like this are a problem if the list is larger than a few elements:

image

I can put in a fix to limit the number of (') vars added, but we probably also need a way to show that there really were more values but they aren't being shown.

Something like this maybe:

x'''(+) =  ...
marklnichols commented 6 years ago

The PR just submitted limits the number of 'shadowed' vars to 3, i.e. x, x', x'', x'''

We still need a way to show that the list of variables has been truncated.

ndmitchell commented 6 years ago

Do we? I think just not worrying might be the easiest and pragmatic solution for now... It's really a "many users" problem, and we don't have that many users just yet, and its quite common to disable shadowing.

marklnichols commented 6 years ago

Ok, sounds good then =)