On windows, trace prints out lines without proper line endings
Try this on Windows
module Foo where f x = x
ghc -c -dverbose-core2core Foo.hs 2> foo
foo. You'll see that
- Some lines, produced by monadic IO, I think, have CRLF endings (
- But others, produced by
Simplify.hsline 220, only have a LF ending (
The inconsistent line endings confuses emacs, which displays
^M at the end of all the CRLF lines (ie most of them). This is Jolly Annoying. John Wiegley has made me a special SPJ-only emacs mimor mode that suppresses the annoying
^M stuff, but that seems like extreme measures.
Question: why doesn't
pprTrace properly terminate its lines?