a mdict library for haskell
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
hashirama 42ad637dc7
start working on raw data gathering
using utf8 for gathering mdd data was a bad idea, and also, there's a need for designing a better GC strategy for mdict objects.
2025-03-18 21:25:26 -04:00
cli-example add cli for usage-example 2025-03-12 14:19:18 -04:00
.gitignore add the first version that actually builds 2025-03-12 13:55:28 -04:00
LICENSE Initial commit 2025-03-12 17:48:57 +00:00
MDict.hs start working on raw data gathering 2025-03-18 21:25:26 -04:00
README.md Update README.md 2025-03-12 18:21:21 +00:00

mdict-hs

a mdict library for haskell

first build mdict-cpp

then in the folder there will be some *.a files, which are the library files that we need. in the example below, we refer to that folder containing those files, as "lib"

build

ghc -O2 -Wall -fno-warn-unused-imports \
    -lmdict -lminilzo -lminiz \
    -L./lib \
    MDict.hs

running the cli

we do provide a example of how to use this library, as a cli

 ghc -L./lib -lmdict -lminiz -lstdc++ Main.hs -o my_program

the command above assumes that the lib folder contain the *.a files mentioned before, and that you also already compiled the haskell library itself and that this Main.hs file is placed in the same folder as the compiled library.