summaryrefslogtreecommitdiff
path: root/ghc/InteractiveUI.hs
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve error message of :set in ghci (ticket #4190).Michal Terepeta2010-11-301-1/+3
|
* fix up multi-line GHCi patch (#4316)Simon Marlow2011-01-051-5/+5
|
* multiline commands in GHCi #4316Vivian McPhail2010-11-051-10/+73
| | | | | | | | | | | | | This patch adds support for multiline commands in GHCi. The first line of input is lexed. If there is an active layout context once the lexer reaches the end of file, the user is prompted for more input. Multiline input is exited by an empty line and can be escaped with a user interrupt. Multiline mode is toggled with `:set +m`
* Replace uses of the old try function with the new oneIan Lynagh2010-12-181-7/+7
|
* Replace uses of the old catch function with the new oneIan Lynagh2010-12-181-2/+2
|
* Create ~/.ghc/ if it doesn't already exist; fixes trac #4522Ian Lynagh2010-12-181-5/+7
|
* Remove more dead code now we require GHC >= 6.12Ian Lynagh2010-12-151-9/+2
|
* fix warningsSimon Marlow2010-12-091-1/+4
|
* :unset settings supportBoris Lykah2010-11-231-20/+35
| | | | | Added support for settings [args, prog, prompt, editor and stop]. Now :unset supports the same set of options as :set.
* Close .ghci files after reading them; fixes trac #4487Ian Lynagh2010-12-051-1/+3
|
* Fix bug #3165 (:history throws irrefutable pattern failed)pepeiborra@gmail.com2010-11-151-2/+2
| | | | | | | | | I ran across this bug and took the time to fix it, closing a long time due TODO in InteractiveEval.hs Instead of looking around to find the enclosing declaration of a tick, this patch makes use of the information already collected during the coverage desugaring phase
* Remove no-longer-necessary withFlattenedDynflagsIan Lynagh2010-11-031-23/+11
|
* Use liftIO rather than ioIan Lynagh2010-11-031-81/+80
|
* Refactoring and tidyup of HscMain and related things (also fix #1666)Simon Marlow2010-10-271-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While trying to fix #1666 (-Werror aborts too early) I decided to some tidyup in GHC/DriverPipeline/HscMain. - The GhcMonad overloading is gone from DriverPipeline and HscMain now. GhcMonad is now defined in a module of its own, and only used in the top-level GHC layer. DriverPipeline and HscMain use the plain IO monad and take HscEnv as an argument. - WarnLogMonad is gone. printExceptionAndWarnings is now called printException (the old name is deprecated). Session no longer contains warnings. - HscMain has its own little monad that collects warnings, and also plumbs HscEnv around. The idea here is that warnings are collected while we're in HscMain, but on exit from HscMain (any function) we check for warnings and either print them (via log_action, so IDEs can still override the printing), or turn them into an error if -Werror is on. - GhcApiCallbacks is gone, along with GHC.loadWithLogger. Thomas Schilling told me he wasn't using these, and I don't see a good reason to have them. - there's a new pure API to the parser (suggestion from Neil Mitchell): parser :: String -> DynFlags -> FilePath -> Either ErrorMessages (WarningMessages, Located (HsModule RdrName))
* Remove the need to explicitly flatten the dynflagsIan Lynagh2010-10-231-1/+1
|
* Replace an outputStr with putStrLn calls; fixes #4332Ian Lynagh2010-10-031-1/+2
|
* Don't show the loaded packages in ":show packages"; fixes #4300Ian Lynagh2010-09-301-5/+0
| | | | It's never worked properly, and the information is in ":show linker".
* use putStrLn instead of Haskeline's outputStrLnSimon Marlow2010-09-241-9/+9
| | | | | use of the latter caused problems for Claus Reinke's macros that redirect stdout.
* Add separate functions for querying DynFlag and ExtensionFlag optionsIan Lynagh2010-09-181-1/+1
| | | | and remove the temporary DOpt class workaround.
* Fix warningsIan Lynagh2010-09-091-1/+2
|
* Remove context completionlykahb@gmail.com2010-09-011-1/+19
| | | | Now completion suggests to remove only modules added to context before.
* Disambiguate a function nameIan Lynagh2010-08-281-1/+1
|
* Flatten flags for ghci's :showIan Lynagh2010-07-251-1/+1
|
* Rename "language" varibles etc to "extension", and add --supported-extensionsIan Lynagh2010-07-241-1/+1
|
* Separate language option handling into 2 phasesIan Lynagh2010-07-241-13/+32
| | | | | | | | | We now first collect the option instructions (from the commandline, from pragmas in source files, etc), and then later flatten them into the list of enabled options. This will enable us to use different standards (H98, H2010, etc) as a base upon which to apply the instructions, when we don't know what the base will be when we start collecting instructions.
* Separate the language flags from the other DynFlag'sIan Lynagh2010-07-241-3/+1
|
* refactor import declaration support (#2362)Simon Marlow2010-07-051-52/+50
|
* trac #2362 (full import syntax in ghci)amsay@amsay.net2010-06-251-35/+68
| | | | 'import' syntax is seperate from ':module' syntax
* In ghci, catch IO exceptions when calling canonicalizePathIan Lynagh2010-06-131-3/+7
| | | | We now get an exception if the path doesn't exist
* Re-add newlines to enable layout for multi-line input.Ian Lynagh2010-06-021-1/+1
| | | | | Patch from Adam Vogt <vogt.adam@gmail.com> Partial fix for #3984
* Use UserInterrupt rather than our own Interrupted exception (#4100)Simon Marlow2010-06-021-5/+12
|
* Refactor pretty printing of TyThings to fix Trac #4015simonpj@microsoft.com2010-05-251-3/+6
|
* runghc: flush stdout/stderr on an exception (#3890)Simon Marlow2010-05-051-0/+2
|
* Fix column numbers used when highlighting :list outputIan Lynagh2009-12-031-2/+2
|
* remove encoding of output using Haskeline; the IO library does it now (#3398)Simon Marlow2009-09-181-10/+6
|
* FIX #3434 (improve vi tags: add non-exported symbols, kinds, regex tags)Peter Hercek2009-08-171-2/+4
|
* alow macros to redefine builtin GHCi commands (implements #3084)Peter Hercek2009-05-121-6/+14
|
* Add -package-id, improve package shadowing behaviour and error messagesSimon Marlow2009-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | A few changes bundled together here: - Add -package-id flag, like -package but takes an InstalledPackageId as an argument (mainly for Cabal) (docs to follow) - Fix the shadowing behaviour: if we end up with two packages with the same name/version that came from different package databases, then one will shadow the other. This may mean we have to disable other packages that depended on the now-shadowed package. Lots of refactoring to ensure that we can get reasonable diagnostics when this happens <command line>: cannot satisfy -package shadowdep: shadowdep-1-XXX is unusable due to missing or recursive dependencies: shadow-1-XXX (use -v for more information)
* remove unnecessary -#include optionsSimon Marlow2009-08-021-1/+0
|
* Windows only: set the encoding on stdin to utf8Simon Marlow2009-07-231-0/+6
| | | | Otherwise it defaults to latin1.
* Trim unused imports detected by new unused-import codesimonpj@microsoft.com2009-07-061-4/+3
|
* Support for -fwarn-unused-do-bind and -fwarn-wrong-do-bind, as per #3263Max Bolingbroke2009-07-011-17/+17
|
* Fix #2197 (properly this time)Simon Marlow2009-07-011-7/+4
| | | | | | | $ ./inplace/bin/ghc-stage2 --interactive GHCi, version 6.11.20090701: http://www.haskell.org/ghc/ :? for help ghc-stage2: GHCi cannot be used when compiled with -prof [1] 32473 exit 1 ./inplace/bin/ghc-stage2 --interactive
* Fix buffering problem when GHCi is using the new IO librarySimon Marlow2009-06-231-1/+11
| | | | | | | | | Behind the scenes, the new IO library always does buffering for read Handles regardless of NoBuffering. Normally this isn't visible, but it causes a problem in GHCi where there are two stdin Handles. This should fix those ghci test failures that sprung up in full testsuite runs recently.
* Changes for the new IO library, mainly base-package modules moving aroundSimon Marlow2009-05-291-1/+12
|
* don't call Haskeline to read input when stdin is not a terminalSimon Marlow2009-05-281-9/+10
|
* Fix warningsIan Lynagh2009-05-231-0/+1
|
* #2197: try to detect when GHCi is compiled with -prof and emit an error messageSimon Marlow2009-05-061-0/+8
|
* Use haskeline, rather than editline, for line editing in ghciIan Lynagh2009-04-291-0/+2237