Unrestricted OverloadedLabels syntax was implemented in GHC 9.6.1. It isn’t hard to notice that this syntax is a strict superset of hexadecimal CSS color syntax, a.k.a. Web colors. It would be great if GUI libraries could take advantage of this fact and allow their users to write
#f00for the color “red,” or even#red, right?
A picture that should catch your attention:
Yep, that’s native VSCode feature, no extensions required.
So the idea is that anyone — especially an author of a GUI library — can apply webcolor-labels to their datatype representing a color and provide this syntax to all users.
Documentation: webcolor-labels: Plug-n-play #hex-syntax for your colors
Source code: GitHub - haskell-game/webcolor-labels
