#1363: Sourcing multi-line scripts in GHCi: track line numbers, and bail out
after
first error
---------------------------------+------------------------------------------
Reporter: Frederik | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: _|_
Component: GHCi | Version: 6.6
Keywords: multiline script | Testcase:
Blockedby: | Difficulty: Moderate (less than a day)
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by vivian):
* cc: haskell.vivian.mcph...@… (added)
* failure: => None/Unknown
* keywords: => multiline script
Comment:
This could be accomplished by providing built-in ":read [n] <filename>"
command that either `:read`s an entire file, keeping track of lines and
bailing at the first error, or `:read [n] <filename>` lines of a file,
pausing and printing line `n`.
Maybe also `:read +n <filename>` to read in chunks of `n` lines, pausing
after every chunk.
Is this an acceptable design?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1363#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs