- 22 Apr, 2007 4 commits
-
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
MERGE TO STABLE Incidentally, this flag should probably be renamed -dppr-user-depth
-
simonpj@microsoft.com authored
MERGE TO STABLE The "user style" in Outputable allows us to elide large expressions when printing HsSyn, printing "..." instead. This is done by calling Outputable.pprDeeper. But there was no mechanism for trimming very long lists, which occur when using do-notation or explicit lists. This patch fixes the problem, by adding Outputable.pprDeeperList. I also made some of the pretty-printing in HsExpr rather more vigorous about increasing the depth; in particular, pprParendExpr. This should make debug prints shorter.
-
simonpj@microsoft.com authored
-
- 20 Apr, 2007 10 commits
-
-
simonpj@microsoft.com authored
The BuiltIn rule for GHC.Base.inline wasn't working for two reasons: a) inlineIdName wasn't in basicKnownKeyNames b) The rule function wasn't taking into account the type argument Thanks to Brian Alliet for spotting this bug.
-
mnislaih authored
I did quite a bit of clean up in the Term pretty printer code too. Support for infix constructors is still on the TODO list
-
mnislaih authored
-
mnislaih authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
- 19 Apr, 2007 7 commits
-
-
Simon Marlow authored
when stopped at a breakpoint we now get: [Test3.hs:2:17-30] *Main> when there is a stack of breakpoints, we get: ... [Test3.hs:2:17-30] *Main> showing just the topmost one. Better suggestions are welcome, but this seems not too bad to me.
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
":list" shows the code around the current breakpoint. Also it highlights the current expression in bold (the bold/unbold codes are hardwired to the ANSI codes right now, I'll provide a way to change them later). ":set stop <cmd>" causes <cmd> to be run each time we stop at a breakpoint. In particular, ":set stop :list" is particularly useful.
-
Simon Marlow authored
-
Simon Marlow authored
we shouldn't be binding 'it' until the computation has actually finished.
-
Simon Marlow authored
-
- 18 Apr, 2007 1 commit
-
-
Simon Marlow authored
-
- 19 Apr, 2007 2 commits
- 14 Apr, 2007 1 commit
-
-
mnislaih authored
-
- 30 Mar, 2007 1 commit
-
-
mnislaih authored
When I factored the GhciMonad out of InteractiveUI.hs, I forgot to expose it in the ghc package
-
- 18 Apr, 2007 14 commits
-
-
simonpj@microsoft.com authored
The bat-script generation was using the wrong paths, in ghc-inplace ghc-pkg hsc2hs plus there was a double-backslah in the latter two which was wrong. This patch fixes both. See "MSys Note 3" in compiler/Makefile
-
Ian Lynagh authored
-
Simon Marlow authored
This is a bit hacky; it grabs the source location from the Name and tries to set a breakpoint at that location, which in most cases should be the breakpoint covering the whole definition.
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
So that we don't accumulate bindings from previous breakpoints, which could lead to a space leak.
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Ian Lynagh authored
-
Simon Marlow authored
-
Simon Marlow authored
- move parts of the debugger implementation below the GHC API where they belong. There is still more in Debugger that violates the layering, hopefully I'll get to that later. - instead of returning an IO action from runStmt for resuming, return a ResumeHandle that is passed to GHC.resume. - breakpoints now return [Name] which is displayed in the same way as when a binding statement is executed. - :load, :add, :reload now clear the active breakpoints and context - :break gives a sensible error when used on a non-interpreted module - export breakpoint-related types from GHC - remove a bunch of layer-violating imports from InteractiveUI - remove some more vestiges of the old breakpoint code (topLevel in the GHCi state). - remove TickTree and use a simple array instead, cached per module
-
Simon Marlow authored
-