Commit 956911e4 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Be strict in the DynFlags inside an SDoc

This is safe now that the tracingDynFlags is not just a call to panic.
Not sure if it was causing a problem as it was, but this change should
help make sure we don't get a chain of thunks built up inside SDocs.
parent 46c184e1
......@@ -238,7 +238,7 @@ data SDocContext = SDC
{ sdocStyle :: !PprStyle
, sdocLastColour :: !PprColour
-- ^ The most recently used colour. This allows nesting colours.
, sdocDynFlags :: DynFlags
, sdocDynFlags :: !DynFlags
initSDocContext :: DynFlags -> PprStyle -> SDocContext
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment