MercuryTechnologies / ghciwatch

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

[DUX-1295] Linebreaks between log messages #13

Open 9999years opened 1 year ago

9999years commented 1 year ago

The ghcid-ng logging code was adapted from the bootstrap-mercury logging code, which prints one-line log messages on a single line, but places a linebreak before and after long log messages (which get wrapped onto multiple lines).

Unfortunately, this doesn't work super well with ghcid-ng, where log messages are interspersed with forwarded output from the underlying ghci session. This causes line breaks to be weird and nonsensical.

The easiest way forward is probably to just remove the linebreaks before and after long messages.

From SyncLinear.com | DUX-1295

9999years commented 10 months ago

I'm going to fix this as part of making the tracing formatter its own crate (tracing-human-layer).