summaryrefslogtreecommitdiff
path: root/compiler/ghci/InteractiveUI.hs
Commit message (Collapse)AuthorAgeFilesLines
* Use haskeline, rather than editline, for line editing in ghciIan Lynagh2009-04-291-2396/+0
|
* FIX #2682: banish silly cases of the "module Foo is not loaded" errorSimon Marlow2009-04-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | In GHCi if you say 'import Foo' meaning to load a package module Foo, and Foo.hs is found on the search path, then GHCi replies "module Foo is not loaded", because it knows Foo refers to the source file rather than the package module, and you haven't loaded that module with :load. This is consistent with the usual module-finding semantics. However, it isn't particularly useful. And it leads to silly problems like not being able to start GHCi when you happen to be sitting in libraries/base, because GHCi thinks the Prelude hasn't been loaded. So now I've made a slight change to the way that 'import M' works: if M is loaded, then it refers to the loaded module, otherwise it looks for a package module M. This does what the reporter of #2682 wanted, and since it turns an error condition into meaningful behaviour it can't break anything. The only undesirable consequence is that 'import M' might refer to a different M than ':load M'. Hopefully that won't lead to confusion.
* FIX #2816 (correct unicode output for :type/:kind)Simon Marlow2009-03-111-2/+8
| | | | | | This is just a hack, since we don't have correct unicode output for Handles in general, I just fixed a couple of places where we were not converting to UTF-8 for output.
* :steplocal and :stepmodule should not polute trace historyPeter Hercek2009-02-221-2/+2
|
* Do not print anything to stdout when stopping at a breakpoint with custom ↵Peter Hercek2009-02-221-19/+24
| | | | code attached
* Force the result of user-defined commandsSimon Marlow2009-01-301-0/+3
| | | | so that exceptions are reported with "*** Exception" instead of as a panic.
* #2973: we should virtualise the CWD inside the GHC API, not in the clientSimon Marlow2009-01-271-3/+0
| | | | | | | The problem is that we install the client's CWD before calling runStmt, but runStmt has to load modules before running the code. We need to install the CWD just before running the code instead, which means it has to be done inside runStmt (and resume).
* Fix buildIan Lynagh2009-01-041-5/+5
|
* Add GHCi completions to :set and :showOri Avtalion2008-12-091-8/+15
|
* Format output for :t more nicelysimonpj@microsoft.com2008-11-261-2/+1
|
* Change 'handleFlagWarnings' to throw exceptions instead of dying.Thomas Schilling2008-11-221-3/+3
| | | | It now uses the standard warning log and error reporting mechanism.
* Don't put stdin into non-blocking mode (#2778, #2777)Simon Marlow2008-11-141-9/+2
| | | | | | | This used to be necessary when our I/O library needed all FDs in O_NONBLOCK mode, and readline used to put stdin back into blocking mode. Nowadays the I/O library can cope with FDs in blocking mode, and #2778/#2777 show why this is important.
* Replace couple of fromJust with expectJustClemens Fruhwirth2008-11-071-2/+2
|
* fix the :help docs for :set stop (#2737)Simon Marlow2008-11-041-1/+1
|
* :set prompt now understand Haskell String syntax; trace #2652Ian Lynagh2008-10-311-4/+7
|
* Restore the terminal attributes even if ghci does not exit normally.Judah Jacobson2008-10-201-4/+3
|
* FIX #2691: Manually reset the terminal to its initial settings; works around ↵Judah Jacobson2008-10-161-1/+17
| | | | a bug in libedit.
* Eliminate duplicate flags in the tab completion of ghci's :set command.Judah Jacobson2008-10-161-1/+2
|
* Fix a typo which was causing ghci to quit on commands errorspepe2008-10-111-1/+1
|
* Use an extensible-exceptions package when bootstrappingIan Lynagh2008-10-031-17/+3
| | | | | | | Ifdefs for whether we had extensible exceptions or not were spreading through GHC's source, and things would only have got worse for the next 2-3 years, so instead we now use an implementation of extensible exceptions built on top of the old exception type.
* Add ASSERTs to all calls of nameModulesimonpj@microsoft.com2008-10-031-5/+9
| | | | | | nameModule fails on an InternalName. These ASSERTS tell you which call failed.
* Let parseModule take a ModSummary like checkAndLoadModule did.Thomas Schilling2008-10-021-1/+1
| | | | | | | | | To get the ModSummary for a ModuleName getModSummary can be used. It's not called find* or lookup* because it assumes that the module is in the module graph and throws an exception if it cannot be found. Overall, I'm not quite sure about the usefulness of this function since the user has no control about which filetype to grab (hs or hs-boot).
* Don't exit ghci if :info is called on an undefined identifier.Judah Jacobson2008-09-241-1/+2
|
* Use 'GhcMonad' in ghci/InteractiveUI.Thomas Schilling2008-09-151-212/+187
|
* re-fix of #1205, fix #2542Simon Marlow2008-08-271-8/+13
| | | | | | | | | | | | | | | New form of :load in GHCi: > :load *A forces A to be loaded as byte-code. See the manual for details. The previous behaviour for specifying filenames vs. module names on the command line and in :load has been restored. The Target datatype has a new Bool field, which is True if the target is allowed to be loaded from compiled code, or False otherwise, so this functionality is available via the GHC API. guessTarget understands the *-prefix form for specifying targets.
* Give locations of flag warnings/errorsIan Lynagh2008-08-261-4/+4
|
* When doing :l, abandon all breakpoints before we unload everythingIan Lynagh2008-08-161-0/+1
| | | | | I'm not 100% sure if this is the right fix, but it seems sensible and stops break008 segfaulting for me on amd64/Linux.
* build base3-compatSimon Marlow2008-08-111-2/+1
|
* Handle optSrcSpanFileName in InteractiveUIMax Bolingbroke2008-07-311-1/+1
|
* Follow changes in the base libraryIan Lynagh2008-07-311-8/+20
| | | | | TopHandler now uses the new extensible exceptions module, so we need to interact with it using the new types.
* Follow extensible exception changesIan Lynagh2008-07-301-15/+15
|
* workaround #2277: turn off the RTS timer when calling into editlineSimon Marlow2008-07-301-4/+16
|
* Fixes for haddock 0.8Ian Lynagh2008-07-211-1/+1
|
* Move -fno-cse flags from Makefile into pragmasIan Lynagh2008-07-111-0/+3
| | | | These are needed for GLOBAL_VAR's to work properly
* More commandline flag improvementsIan Lynagh2008-06-161-4/+4
| | | | | | | * Allow -ffoo flags to be deprecated * Mark some -ffoo flags as deprecated * Avoid using deprecated flags in error messages, in the build system, etc * Add a flag to en/disable the deprecated flag warning
* Allow -X flags to be deprecated, and deprecate RecordPuns; fixes #2320Ian Lynagh2008-06-151-3/+3
|
* Allow flags to be marked as deprecatedIan Lynagh2008-06-141-1/+3
|
* Use MD5 checksums for recompilation checking (fixes #1372, #1959)Simon Marlow2008-05-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | This is a much more robust way to do recompilation checking. The idea is to create a fingerprint of the ABI of an interface, and track dependencies by recording the fingerprints of ABIs that a module depends on. If any of those ABIs have changed, then we need to recompile. In bug #1372 we weren't recording dependencies on package modules, this patch fixes that by recording fingerprints of package modules that we depend on. Within a package there is still fine-grained recompilation avoidance as before. We currently use MD5 for fingerprints, being a good compromise between efficiency and security. We're not worried about attackers, but we are worried about accidental collisions. All the MD5 sums do make interface files a bit bigger, but compile times on the whole are about the same as before. Recompilation avoidance should be a bit more accurate than in 6.8.2 due to fixing #1959, especially when using -O.
* sort the output of :show packagesSimon Marlow2008-05-201-1/+1
|
* change topHandlerFastExit to topHandler, so the terminal state gets restored ↵Simon Marlow2008-04-291-6/+2
| | | | (#2228)
* don't turn off stdin/stdout buffering after loading a module with ghc -e (#2228)Simon Marlow2008-04-291-4/+5
|
* Add :list to ghci's :? help; fixes trac #2217Ian Lynagh2008-04-271-0/+3
|
* (F)SLIT -> (f)sLit in InteractiveUIIan Lynagh2008-04-121-6/+6
|
* Virtualize the cwd in GHCiPepe Iborra2008-04-051-11/+10
| | | | | | | This fixes the issue where :list would stop working if the program being debugged side-effected the working directory, and should prevent other similar issues
* Remove a redundant type sigIan Lynagh2008-03-261-1/+0
|
* Follow changes in editlineIan Lynagh2008-03-171-4/+2
|
* Use editline instead of readlineIan Lynagh2008-03-161-12/+14
|
* parsing tweak for :breakSimon Marlow2008-03-131-1/+1
|
* #2050: save the GHCi history in ~/.ghc/ghci_historySimon Marlow2008-03-121-5/+19
| | | | Modified version of Judah's patch
* FIX #2073: Don't add empty lines to GHCI's historyIan Lynagh2008-02-241-0/+1
|