dahlia / seonbi

SmartyPants for Korean language

Home Page:https://hackage.haskell.org/package/seonbi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Standard Korean Language Dictionary is not included if flag(static) is turned on

dahlia opened this issue · comments

Standard Korean Language Dictionary (data/ko-kr-stdict.tsv) is not included if flag(static) is turned on. It's because Text.Seonbi.Facade.southKoreanDictionary loads it using Cabal's data-files metadata at runtime, but these data files are not included into the executable binary.

This needs to be fixed so that if flag(static) is turned on at compile-time the code to load the data file uses file-embed instead of Cabal's data-files metadata. Note that file-embed makes data files embedded into the executable binary.