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
Alex D
GHC
Commits
22e5b884
Commit
22e5b884
authored
May 21, 2013
by
usrbincc
Committed by
ian@well-typed.com
Jun 04, 2013
Browse files
Formatting only: fix alignment.
parent
bc44435d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/InteractiveUI.hs
View file @
22e5b884
...
...
@@ -1876,18 +1876,18 @@ setCmd "" = showOptions False
setCmd
"-a"
=
showOptions
True
setCmd
str
=
case
getCmd
str
of
Right
(
"args"
,
rest
)
->
Right
(
"args"
,
rest
)
->
case
toArgs
rest
of
Left
err
->
liftIO
(
hPutStrLn
stderr
err
)
Right
args
->
setArgs
args
Right
(
"prog"
,
rest
)
->
Right
(
"prog"
,
rest
)
->
case
toArgs
rest
of
Right
[
prog
]
->
setProg
prog
_
->
liftIO
(
hPutStrLn
stderr
"syntax: :set prog <progname>"
)
Right
(
"prompt"
,
rest
)
->
setPrompt
$
dropWhile
isSpace
rest
Right
(
"prompt"
,
rest
)
->
setPrompt
$
dropWhile
isSpace
rest
Right
(
"prompt2"
,
rest
)
->
setPrompt2
$
dropWhile
isSpace
rest
Right
(
"editor"
,
rest
)
->
setEditor
$
dropWhile
isSpace
rest
Right
(
"stop"
,
rest
)
->
setStop
$
dropWhile
isSpace
rest
Right
(
"editor"
,
rest
)
->
setEditor
$
dropWhile
isSpace
rest
Right
(
"stop"
,
rest
)
->
setStop
$
dropWhile
isSpace
rest
_
->
case
toArgs
str
of
Left
err
->
liftIO
(
hPutStrLn
stderr
err
)
Right
wds
->
setOptions
wds
...
...
@@ -2067,12 +2067,12 @@ unsetOptions str
(
other_opts
,
rest3
)
=
partition
(`
elem
`
map
fst
defaulters
)
rest2
defaulters
=
[
(
"args"
,
setArgs
default_args
)
,
(
"prog"
,
setProg
default_progname
)
,
(
"prompt"
,
setPrompt
default_prompt
)
[
(
"args"
,
setArgs
default_args
)
,
(
"prog"
,
setProg
default_progname
)
,
(
"prompt"
,
setPrompt
default_prompt
)
,
(
"prompt2"
,
setPrompt2
default_prompt2
)
,
(
"editor"
,
liftIO
findEditor
>>=
setEditor
)
,
(
"stop"
,
setStop
default_stop
)
,
(
"editor"
,
liftIO
findEditor
>>=
setEditor
)
,
(
"stop"
,
setStop
default_stop
)
]
no_flag
(
'-'
:
'f'
:
rest
)
=
return
(
"-fno-"
++
rest
)
...
...
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