EarthCitizen / escape-artist

A Haskell library for text decoration with ANSI escape sequences made easy
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Implement Eq that does not convert to String #13

Closed EarthCitizen closed 7 years ago

EarthCitizen commented 7 years ago

In 1.x, Eq is implemented by converting to String with the intention that if they produce the same output, then they are equal. This creates some unintended consequences.

Going forward, it is needed to have a true Eq that will produce the following:

Value 1 Value 1 == Result
FgRed 5 FgRed "5" False