Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
11a6f10c
Commit
11a6f10c
authored
May 21, 2007
by
Simon Marlow
Browse files
FIX BUILD: GHC doesn't use filepath (yet)
parent
9fc05668
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/ghci/InteractiveUI.hs
View file @
11a6f10c
...
...
@@ -70,7 +70,6 @@ import System.Exit ( exitWith, ExitCode(..) )
import
System.Directory
import
System.IO
import
System.IO.Error
as
IO
import
System.FilePath
import
Data.Char
import
Data.Dynamic
import
Data.Array
...
...
@@ -1794,7 +1793,7 @@ listModuleLine modl line = do
-- start_bold/end_bold.
listAround
span
do_highlight
=
do
pwd
<-
getEnv
"PWD"
contents
<-
BS
.
readFile
(
pwd
</>
unpackFS
file
)
contents
<-
BS
.
readFile
(
pwd
`
joinFileName
`
unpackFS
file
)
let
lines
=
BS
.
split
'
\n
'
contents
these_lines
=
take
(
line2
-
line1
+
1
+
pad_before
+
pad_after
)
$
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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