[GHC] #14188: On windows, trace prints out lines without proper line endings
GHC
ghc-devs at haskell.org
Wed Sep 6 12:45:08 UTC 2017
#14188: On windows, trace prints out lines without proper line endings
-------------------------------------+-------------------------------------
Reporter: simonpj | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Try this on Windows
{{{
module Foo where
f x = x
}}}
and now
{{{
ghc -c -dverbose-core2core Foo.hs 2> foo
}}}
Now edit `foo`. You'll see that
* Some lines, produced by monadic IO, I think, have CRLF endings (`^M^J`).
* But others, produced by `pprTrace` (actually `Simplify.hs` line 220,
only have a LF ending (`^J`).
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?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14188>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list