on master help sign in
Remove the relaxed comments flag from context or ‘R’ monad
ca1a2e9mrkkrp
src/Ormolu/Printer/Internal.hs−3
@@ -69,8 +69,6 @@ data RC = RC
69 -- newline if we break lines
69 -- newline if we break lines
70 , rcLayout :: Layout
70 , rcLayout :: Layout
71 -- ^ Current layout
71 -- ^ Current layout
72− , rcRelaxedComments :: Bool
73− -- ^ Whether to relax aligning rules for comments
74 , rcDebug :: Bool
72 , rcDebug :: Bool
75 -- ^ Whether to print debugging info as we go
73 -- ^ Whether to print debugging info as we go
76 , rcEnclosingSpans :: [RealSrcSpan]
74 , rcEnclosingSpans :: [RealSrcSpan]
@@ -116,7 +114,6 @@ runR debug (R m) sstream cstream anns =
116 rc = RC
114 rc = RC
117 { rcIndent = 0
115 { rcIndent = 0
118 , rcLayout = MultiLine
116 , rcLayout = MultiLine
119− , rcRelaxedComments = False
120 , rcDebug = debug
117 , rcDebug = debug
121 , rcEnclosingSpans = []
118 , rcEnclosingSpans = []
122 , rcAnns = anns
119 , rcAnns = anns