MercuryTechnologies / ghciwatch

Load a GHCi session for a Haskell project and reload it when source files change
https://mercurytechnologies.github.io/ghciwatch/
MIT License
111 stars 10 forks source link

Don't restart for removed or renamed modules #290

Closed 9999years closed 4 months ago

9999years commented 4 months ago

Ghcid crashes when modules are removed/renamed because all it can do to the underlying GHCi session is :reload, and a GHCi bug means that the GHCi session will crash when this happens.

Because ghciwatch tracks which files/modules are loaded in the session, it can accurately :unadd files from the session when they're removed on disk, without requiring the session be restared.

This should speed up development.

I'm going to cut 1.0 with this while we're at it.

linear[bot] commented 4 months ago

DUX-2336 Remove modules instead of restarting GHCi

github-actions[bot] commented 4 months ago

A PR to release these changes has been created, bumping the version from 0.5.16 to 1.0.0.