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.
commit6c435a17cd48af40dbf87ebbec8baf6ac6aabe27
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 3 Dec 2019, 16:38 (7 years ago)
parent3afd0c7
COPYRIGHT+1−1
@@ -198,7 +198,7 @@ revised by Martin Paul Eve and then John MacFarlane.
198198License. Originally by Martin Fenner."
199199
200200------------------------------------------------------------------------
201−The file data/emoji.json is derived from https://github.com/github/gemoji.
201+The file emoji.json is derived from https://github.com/github/gemoji.
202202
203203Copyright (c) 2019 GitHub, Inc.
204204
data/emoji.json → emoji.jsonrenamed
The content is the same.
pandoc.cabal+2
@@ -189,6 +189,8 @@ extra-source-files:
189189 -- files needed to build man page
190190 man/manfilter.lua
191191 man/pandoc.1.template
192+ -- data files used by TH
193+ emoji.json
192194 -- trypandoc
193195 trypandoc/Makefile
194196 trypandoc/index.html
src/Text/Pandoc/Emoji.hs+1−1
@@ -20,7 +20,7 @@ import Text.Pandoc.Definition (Inline (Span, Str))
2020import Text.Pandoc.Emoji.TH (genEmojis)
2121
2222emojis :: M.Map T.Text T.Text
23−emojis = M.fromList $(genEmojis "data/emoji.json")
23+emojis = M.fromList $(genEmojis "emoji.json")
2424
2525emojiToInline :: T.Text -> Maybe Inline
2626emojiToInline emojikey = makeSpan <$> M.lookup emojikey emojis