diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-12-03 16:38:19 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-12-03 16:38:19 -0800 |
commit | 6c435a17cd48af40dbf87ebbec8baf6ac6aabe27 (patch) | |
tree | 3d30780395eec2064d3348346685d89b4bb7736b /src | |
parent | 3afd0c7f5bc6f6b0e3e81816680f67a913c0dce4 (diff) | |
download | pandoc-6c435a17cd48af40dbf87ebbec8baf6ac6aabe27.tar.gz |
Move data/emoji.json to emoji.json, add to extra-source-files.
This doesn't really belong in data-files as it's not loaded
dynamically.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Emoji.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Emoji.hs b/src/Text/Pandoc/Emoji.hs index b10321760..823f9450d 100644 --- a/src/Text/Pandoc/Emoji.hs +++ b/src/Text/Pandoc/Emoji.hs @@ -20,7 +20,7 @@ import Text.Pandoc.Definition (Inline (Span, Str)) import Text.Pandoc.Emoji.TH (genEmojis) emojis :: M.Map T.Text T.Text -emojis = M.fromList $(genEmojis "data/emoji.json") +emojis = M.fromList $(genEmojis "emoji.json") emojiToInline :: T.Text -> Maybe Inline emojiToInline emojikey = makeSpan <$> M.lookup emojikey emojis |