Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7510eead
Commit
7510eead
authored
Mar 17, 2008
by
Ian Lynagh
Browse files
Follow changes in editline
parent
dab5f1b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/ghci/InteractiveUI.hs
View file @
7510eead
...
...
@@ -317,10 +317,9 @@ interactiveUI session srcs maybe_exprs = do
when
is_tty
$
do
Readline
.
initialize
-- XXX Should we be catching exceptions thrown by readHistory?
withGhcAppData
(
\
dir
->
Readline
.
readHistory
(
dir
</>
"ghci_history"
))
(
return
()
)
(
return
True
)
Readline
.
setAttemptedCompletionFunction
(
Just
completeWord
)
--Readline.parseAndBind "set show-all-if-ambiguous 1"
...
...
@@ -356,9 +355,8 @@ interactiveUI session srcs maybe_exprs = do
#
ifdef
USE_EDITLINE
Readline
.
stifleHistory
100
-- XXX Should we be catching exceptions thrown by readHistory?
withGhcAppData
(
\
dir
->
Readline
.
writeHistory
(
dir
</>
"ghci_history"
))
(
return
()
)
(
return
True
)
Readline
.
resetTerminal
Nothing
#
endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment