emojis-0.1.4.1: Conversion between emoji characters and their names.

Safe Haskell | Safe-Inferred
Language | Haskell2010

Text.Emoji

Synopsis

- emojis :: [(Text, Text)]
- emojiFromAlias :: Text -> Maybe Text
- aliasesFromEmoji :: Text -> Maybe [Text]
- replaceEmojis :: (Text -> [Text] -> Text) -> Text -> Text
- baseEmojis :: [Text]
- zwjEmojis :: [Text]

# Documentation

emojis :: [(Text, Text)] #

Association list of (alias, emoji) pairs. Note that the same emoji may have multiple aliases.

emojiFromAlias :: Text -> Maybe Text #

Lookup an emoji given its alias.

aliasesFromEmoji :: Text -> Maybe [Text] #

Lookup the aliases of an emoji.

replaceEmojis :: (Text -> [Text] -> Text) -> Text -> Text #

Replace emojis in a text with alternative text. The replacement function maps an emoji and a list of emoji aliases to a replacement text.

baseEmojis :: [Text] #

A list of all valid emoji (not containing zero-width joiners), taken from the Unicode Emoji Specification.

zwjEmojis :: [Text] #

A list of all valid emoji built from zero-width joiners, taken from the Unicode Emoji Specification.