Can I get a show instance with color output?
data MyData = MyData {red :: String}
instance Show MyData where ...
The idea is that whenever I print a variable of type MyData, it will print in red (for example, using the ansi-terminal package to output the color)
source
share