Skip to content
Snippets Groups Projects
Commit ea3a9edd authored by Ian Lynagh's avatar Ian Lynagh
Browse files

More DynFlags + SDoc

parent 781f9cae
No related branches found
No related tags found
No related merge requests found
......@@ -897,10 +897,10 @@ pprDefiniteTrace :: String -> SDoc -> a -> a
-- ^ Same as pprTrace, but show even if -dno-debug-output is on
pprDefiniteTrace str doc x = pprAndThen trace str doc x
pprPanicFastInt :: String -> SDoc -> FastInt
pprPanicFastInt :: DynFlags -> String -> SDoc -> FastInt
-- ^ Specialization of pprPanic that can be safely used with 'FastInt'
pprPanicFastInt heading pretty_msg =
panicFastInt (show (runSDoc doc (initSDocContext PprDebug)))
pprPanicFastInt dflags heading pretty_msg =
panicFastInt (show (runSDoc doc (initSDocContext' dflags PprDebug)))
where
doc = text heading <+> pretty_msg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment