Skip to content

Commit 5431b92

Browse files
GHC 9.2 compat fix.
The multiplicities returned by patSynSig on the orig_args value are uninteresting. patSynSig is literally just calling (map unrestricted). There is no information there for us to care about.
1 parent 9d58928 commit 5431b92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ghcide/src/Development/IDE/Plugin/TypeLenses.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,11 @@ gblBindingType _ _ = pure Nothing
291291
pprPatSynTypeWithoutForalls :: PatSyn -> SDoc
292292
pprPatSynTypeWithoutForalls p = pprPatSynType pWithoutTypeVariables
293293
where
294-
pWithoutTypeVariables = mkPatSyn name declared_infix ([], req_theta) ([], prov_theta) orig_args orig_res_ty matcher builder field_labels
294+
pWithoutTypeVariables = mkPatSyn name declared_infix ([], req_theta) ([], prov_theta) orig_args' orig_res_ty matcher builder field_labels
295295
(_univ_tvs, req_theta, _ex_tvs, prov_theta, orig_args, orig_res_ty) = patSynSig p
296296
name = patSynName p
297297
declared_infix = patSynIsInfix p
298298
matcher = patSynMatcher p
299299
builder = patSynBuilder p
300300
field_labels = patSynFieldLabels p
301+
orig_args' = map scaledThing orig_args

0 commit comments

Comments
 (0)