#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: 6.10
Component: GHCi | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Moderate (1 day)
Os: Unknown | Testcase:
Architecture: Unknown |
--------------------------------+-------------------------------------------
Comment (by Frederik):
I think loading a file will not work in cases where one wants to
parametrize the quantities in it by something which changes at runtime, is
this not the case? If I "source" a file then it can make reference to
things which I have already defined with 'let' in ghci. Please correct me
if I'm wrong about the first point...
As for breakpoints, I thought you said that the GHC.breakpoint (?)
function wasn't working at the moment, and one had to set them by hand.
Perhaps it is easy to do the latter automatically, but it seems to depend
on knowing a line number which can change when a file is edited, so not
quite straightforward yet.
The ghci debugger seems pretty useful, by the way. I have the impression
that it will be possible to build flexible command line tools by setting
up a bunch of variables inside a function and then breaking into ghci for
the user to manipulate the variables. (I think I have probably asked
before, but presumably this can be used even to work with variables which
could not be returned from the function which declares them due to e.g.
restrictions of higher order polymorphism? The prevalence of such
functions is currently a big restriction on the usefulness of my library
for interactive tasks)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1363>
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