Add 'Emoji' type
chshersh opened this issue · 0 comments
chshersh commented
I would like to add the emoji type that contains a textual alternative so the printing functions could decide how to print it based on the terminal support.
I imagine having the following type:
data Emoji = Emoji
{ emojiMain :: Text
, emojiAlt :: Text
}
with the intended usage like this:
success, failure, process :: Emoji
success = Iris.Emoji "✅ " "OK "
failure = Iris.Emoji "⛔ " "NO "
process = Iris.Emoji "📥 " ".. "
I propose creating a separate Iris.Emoji
module where the Emoji
definition with the documentation can be put.
So far, no function for outputting an emoji is required.