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.
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:
with the intended usage like this:
I propose creating a separate
Iris.Emoji
module where theEmoji
definition with the documentation can be put.So far, no function for outputting an emoji is required.