- Haskell 99%
- Shell 1%
- Makefile <1%
ililt #
A word game for people who know each other a little too well.
Each day, a prompt appears. An adjective. A vibe.
Something like spiky, or underrated, or surprisingly legal. You type a response - a noun, a name, a place, a thing, whatever surfaces first. Then you wait.
Tomorrow you see what everyone else wrote. You vote before the names are revealed. Then the curtain drops.
Feels like a game you could have played in an alternate reality 1980s BBS. - some rando
How it works (phase 0) #
- Prompt — an adjective or short phrase is revealed once a day
- Submit — type whatever noun, name, place, or situation comes to mind
- Judge — next login, vote on yesterday's submissions before names are revealed
- Reveal — see who submitted what, then do it again
Status #
Early prototype — CLI client talks to an HTTP API backed by SQLite.
Building & running from source #
Prerequisites #
Install GHCup — the standard, cross-platform (Linux/macOS/Windows) way to install and manage GHC and cabal:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
Then use it to install the toolchain, or just run make setup (below):
ghcup install ghc --set
ghcup install cabal --set
GHCup lets you pin/switch GHC versions per-project and works the same way locally and in CI, on any architecture — unlike distro/Homebrew packages, which tie you to whatever single version they currently ship. No other system dependencies are needed — SQLite is bundled and compiled by the direct-sqlite package.
Build & test #
A Makefile wraps the common commands so they're identical locally and in CI:
make setup # install GHC + cabal via ghcup
make build # cabal build
make test # cabal test
make ci # build + test (used by CI)
CI backends only need to invoke ./ci.sh (installs GHCup if missing, then runs make ci) or make ci directly if the toolchain is already provisioned in the runner image — no dependency on any particular CI vendor's YAML dialect.
Run the server #
The server auto-creates and migrates its SQLite database on startup, so no manual setup step is needed:
cabal run ililtd -- --port 8080 --db ililt.sqlite3
or make run-server for the defaults. --port and --db are both optional and default to 8080 and ililt.sqlite3.
Use the CLI #
In another terminal, with the server running:
cabal run ililt -- register <handle> --server http://localhost:8080
cabal run ililt -- today
cabal run ililt -- submit <your response>
cabal run ililt -- judge
cabal run ililt -- reveal
cabal run ililt -- stats
register saves your handle, player id, and server URL to ~/.config/ililt/config.json, so --server only needs to be passed once.