a mdict library for haskell
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
hashirama 5b67ca2164 use the target function
the processDictionary function is the one we need to use for lookups, because it inserts all resources and gives just the full html at the end, ready to be displayed

Signed-off-by: hashirama <hashirama@noreply.localhost>
2026-01-20 03:24:16 +00:00
.github/workflows Update .github/workflows/main.yml 2025-09-02 04:34:44 +00:00
cli-example use the target function 2026-01-20 03:24:16 +00: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 waza-hs does not belong here 2026-01-20 01:48:10 +00:00
README.md Update README.md 2025-08-29 02:48:53 +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 Main.hs MDict.hs -L./lib -lmdict -lmdictbase64 -lminiz -lstdc++ -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.