Show instance output with color output

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)

+4
source share

Source: https://habr.com/ru/post/1537717/


All Articles