- Name:
tuispec - Language/tooling: Haskell +
cabalonly - Scope: Playwright-like black-box testing for TUIs using PTY transport
- Platform target: Linux terminal environments
- Snapshot mode: text + PNG artifacts
- Primary specification:
SPEC.md
- Terminal viewport default:
134columns x40rows - Styled snapshot renderer:
12ptfont,1pxpadding on each side - Snapshot palette mode:
auto(fallback to dark when terminal background is unknown)
When changing Haskell or cabal files:
- Run formatter:
fourmolu -i $(rg --files -g '*.hs')
- Normalize cabal file:
cabal-gild -i tuispec.cabal
- Build:
cabal build
- Check package:
cabal check
- Verify Haddock builds for Hackage:
cabal haddock --haddock-for-hackage
- All exported functions and data types must have Haddock documentation comments (
-- |).
When changing server methods, CLI commands, or the recording/replay format, always update the corresponding docs:
SERVER.md— JSON-RPC method referenceSKILL.md— REPL/server operator workflowSPEC.md— full specification
- Smoke test:
cabal test
- Brick demo suite:
cd example && cabal test