X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FDriverMkDepend.hs;h=95587cd6c1cb6da086fb2491a3c569ce187f8abb;hp=4155274e313cef63dcd164d49fd4fb4906a5264d;hb=d83e1ac43a43dc30c7e4f5b64f7b77e32d31886d;hpb=30c122df62ec75f9ed7f392f24c2925675bf1d06 diff --git a/compiler/main/DriverMkDepend.hs b/compiler/main/DriverMkDepend.hs index 4155274..95587cd 100644 --- a/compiler/main/DriverMkDepend.hs +++ b/compiler/main/DriverMkDepend.hs @@ -333,16 +333,16 @@ dumpModCycles dflags mod_summaries = return () | null cycles - = putMsg dflags (ptext SLIT("No module cycles")) + = putMsg dflags (ptext (sLit "No module cycles")) | otherwise - = putMsg dflags (hang (ptext SLIT("Module cycles found:")) 2 pp_cycles) + = putMsg dflags (hang (ptext (sLit "Module cycles found:")) 2 pp_cycles) where cycles :: [[ModSummary]] cycles = [ c | CyclicSCC c <- GHC.topSortModuleGraph True mod_summaries Nothing ] - pp_cycles = vcat [ (ptext SLIT("---------- Cycle") <+> int n <+> ptext SLIT("----------")) + pp_cycles = vcat [ (ptext (sLit "---------- Cycle") <+> int n <+> ptext (sLit "----------")) $$ pprCycle c $$ text "" | (n,c) <- [1..] `zip` cycles ] @@ -372,7 +372,7 @@ pprCycle summaries = pp_group (CyclicSCC summaries) pp_ms summary = text mod_str <> text (take (20 - length mod_str) (repeat ' ')) <+> (pp_imps empty (ms_imps summary) $$ - pp_imps (ptext SLIT("{-# SOURCE #-}")) (ms_srcimps summary)) + pp_imps (ptext (sLit "{-# SOURCE #-}")) (ms_srcimps summary)) where mod_str = moduleNameString (moduleName (ms_mod summary)) @@ -381,7 +381,7 @@ pprCycle summaries = pp_group (CyclicSCC summaries) pp_imps what lms = case [m | L _ m <- lms, m `elem` cycle_mods] of [] -> empty - ms -> what <+> ptext SLIT("imports") <+> + ms -> what <+> ptext (sLit "imports") <+> pprWithCommas ppr ms -----------------------------------------------------------------