forked from marko/svitak
EPUB reader written in Haskell
- Haskell 92%
- Scheme 4.5%
- Shell 3.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
add stGen which gets bumped for every worker thread spawned by loadBook every thread captures stGen when it spawns and before actually loading the book in the main thread, and in the worker thread it checks if myGen == stGen this throws away stale requests, meaning if you try and load another book while one is still loading, it will ignore the one still loading and start loading the latest request |
||
| app | ||
| test | ||
| .envrc | ||
| .gitignore | ||
| guix.scm | ||
| LICENSE | ||
| README.md | ||
| run-svitak.sh | ||
| svitak.cabal | ||
Svitak 📖
A minimal EPUB parser and reader written in Haskell.
Installation
System prerequisites:
- GHC ≥ 9.10
- GTK / WebKit system libraries (required by
gi-gtkandgi-webkit)
Dependencies
Arch:
sudo pacman -S \
ghc cabal-install \
gtk4 \
webkitgtk-6.0 \
gobject-introspection \
pkgconf
Feel free to make a pull request for instructions regarding your OS/distro
Clone the repo
git clone "https://git.ajattix.org/castelia/svitak.git" && cd svitak
Building
Update the package index (optional but recommended):
cabal update
Proceed with building:
cabal build