| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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`
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Added support for settings [args, prog, prompt, editor and stop].
Now :unset supports the same set of options as :set.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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))
|
| |
|
| |
|
|
|
|
| |
It's never worked properly, and the information is in ":show linker".
|
|
|
|
|
| |
use of the latter caused problems for Claus Reinke's macros that
redirect stdout.
|
|
|
|
| |
and remove the temporary DOpt class workaround.
|
| |
|
|
|
|
| |
Now completion suggests to remove only modules added to context before.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
'import' syntax is seperate from ':module' syntax
|
|
|
|
| |
We now get an exception if the path doesn't exist
|
|
|
|
|
| |
Patch from Adam Vogt <vogt.adam@gmail.com>
Partial fix for #3984
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
| |
Otherwise it defaults to latin1.
|
| |
|
| |
|
|
|
|
|
|
|
| |
$ ./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
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|