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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
f4eaa144
Commit
f4eaa144
authored
Feb 02, 2005
by
simonpj
Browse files
[project @ 2005-02-02 13:28:29 by simonpj]
Tidy output
parent
459db29a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/compMan/CompManager.lhs
View file @
f4eaa144
...
...
@@ -1346,10 +1346,10 @@ cyclicModuleErr ms
= hang (ptext SLIT("Module imports form a cycle for modules:"))
2 (vcat (map show_one ms))
where
show_one ms =
vcat
[show_mod (ms_hsc_src ms) (ms_mod ms),
ptext SLIT("
I
mports:") <+>
(pp_imps HsBootFile (ms_srcimps ms)
$$ pp_imps HsSrcFile (ms_imps ms))]
show_one ms =
sep
[
show_mod (ms_hsc_src ms) (ms_mod ms),
nest 2 $
ptext SLIT("
i
mports:") <+>
(pp_imps HsBootFile (ms_srcimps ms)
$$ pp_imps HsSrcFile (ms_imps ms))]
show_mod hsc_src mod = ppr mod <> text (hscSourceString hsc_src)
pp_imps src mods = fsep (map (show_mod src) mods)
\end{code}
...
...
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