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
8eb5a108
Commit
8eb5a108
authored
Aug 11, 2006
by
Simon Marlow
Browse files
use "Defined in" rather than "Imported from" when printing ImportedSrcLoc
parent
49e3b654
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/basicTypes/SrcLoc.lhs
View file @
8eb5a108
...
...
@@ -157,7 +157,7 @@ instance Outputable SrcLoc where
hcat [text "{-# LINE ", int src_line, space,
char '\"', ftext src_path, text " #-}"]
ppr (ImportedLoc mod) = ptext SLIT("
Imported from
") <+> text mod
ppr (ImportedLoc mod) = ptext SLIT("
Defined in
") <+> text mod
ppr (UnhelpfulLoc s) = ftext s
\end{code}
...
...
@@ -354,7 +354,7 @@ pprUserSpan (SrcSpanPoint src_path line col)
char ':', int col
]
pprUserSpan (ImportedSpan mod) = ptext SLIT("
Imported from") <+> quotes (
text mod
)
pprUserSpan (ImportedSpan mod) = ptext SLIT("
Defined in") <+>
text mod
pprUserSpan (UnhelpfulSpan s) = ftext s
\end{code}
...
...
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