{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiazlx2b53t4nhet3jfga2a4lmivv6ap75sanh4wzlwkbhrmane2ji",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mo43vnpg5g42"
},
"path": "/t/best-way-to-run-tests-on-file-save/14264#post_2",
"publishedAt": "2026-06-12T10:12:06.000Z",
"site": "https://discourse.haskell.org",
"textContent": "People usually use ghci for this.\n\nghcid (note the ‘d’) has some flags for rerunning tests. Assuming your tests don’t need to run with optimisations.\n\nI use ghci in emacs with a more generalised key shortcut that is “switch to whatever terminal buffer is on the screen, run Ctrl-C interrupt, resend the previous prompt” — similar flow to ghcid.",
"title": "Best way to run tests on file save"
}