File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ diffHsModule = genericQuery
153153 epAnnEq :: EpAnn a -> b -> ParseResultDiff
154154 epAnnEq _ _ = Same
155155
156+ importDeclQualifiedStyleEq :: forall a . (Data a ) => ImportDeclQualifiedStyle -> a -> ParseResultDiff
156157 importDeclQualifiedStyleEq = considerEqualVia' f
157158 where
158159 f QualifiedPre QualifiedPost = True
Original file line number Diff line number Diff line change @@ -128,14 +128,13 @@ adjustMatchGroupStyle ::
128128 MatchGroupStyle ->
129129 MatchGroupStyle
130130adjustMatchGroupStyle m = \ case
131- Function _ -> ( Function . mc_fun . m_ctxt) m
131+ Function _ | FunRhs { mc_fun = f} <- m_ctxt m -> Function f
132132 style -> style
133133
134134matchStrictness :: Match id body -> SrcStrictness
135- matchStrictness match =
136- case m_ctxt match of
137- FunRhs {mc_strictness = s} -> s
138- _ -> NoSrcStrict
135+ matchStrictness = \ case
136+ Match {m_ctxt = FunRhs {mc_strictness = s}} -> s
137+ _ -> NoSrcStrict
139138
140139p_match ::
141140 -- | Style of the group
You can’t perform that action at this time.
0 commit comments