ghc cyclic import error confusing
wren ng thornton
wren at freegeek.org
Fri Apr 15 01:15:03 CEST 2011
On 4/14/11 1:24 PM, Bryan Richter wrote:
> Perhaps the following change would be sufficient?
>
> --- tmp/GhcMake.hs~ 2011-04-14 09:46:02.177298318 -0700
> +++ tmp/GhcMake.hs 2011-04-14 09:52:25.121290827 -0700
> @@ -1460,7 +1460,8 @@
>
> cyclicModuleErr :: [ModSummary] -> SDoc
> cyclicModuleErr ms
> - = hang (ptext (sLit "Module imports form a cycle for modules:"))
> + = hang (ptext (sLit "Module imports form a strongly connected graph, with one or more cycles, for these modules:"))
> 2 (vcat (map show_one ms))
> where
> mods_in_cycle = map ms_mod_name ms
+1.
It's a trivial interim solution even if we do improve the analysis later on.
--
Live well,
~wren
More information about the Glasgow-haskell-users
mailing list