|
[ ghc-Bugs-782761 ] Wrong line count in parsec under linux on dos-style : msg#00003lang.haskell.glasgow.bugs
Bugs item #782761, was opened at 2003-08-04 04:32 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=782761&group_id=8032 Category: hslibs/text Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong line count in parsec under linux on dos-style files Initial Comment: Parsec doubles the line count (reported e.g. in a parse error) when run (at least on a linux box) on DOS-style files (with DOS-style newlines) I have GHC 6.0 My e-mail address is nick.name@xxxxxxxxx Bye Vincenzo Ciancia ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-08-04 11:16 Message: Logged In: NO As a temporary fix, you may comment out the following line in the ParsecPos.hs file. This fix will make correct line numbers being displayed on Unix OS's as well as Microsoft's irrespective of where the text input files are created (this fix will probably result in a bug on Mac's), Comment out the line '\r' -> SourcePos name (line+1) 1 in updatePosChar function in ParsecPos.hs Keep a local copy of parsec, and pick up parsec from here, instead of from GHC's text package. A.P. Rao. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=782761&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: DLL problem with GHC 6.0.1, Simon Marlow |
|---|---|
| Next by Date: | compiler (simplifier) loops, Iavor Diatchki |
| Previous by Thread: | [ ghc-Bugs-782761 ] Wrong line count in parsec under linux on dos-style files, SourceForge.net |
| Next by Thread: | compiler (simplifier) loops, Iavor Diatchki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |