Skip to content

Commit d13871a

Browse files
committed
Fixes code action add default type to satisfy one constraint
1 parent 71a6e9c commit d13871a

File tree

1 file changed

+0
-8
lines changed
  • plugins/hls-refactor-plugin/src/Development/IDE/Plugin

1 file changed

+0
-8
lines changed

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs

-8
Original file line numberDiff line numberDiff line change
@@ -813,20 +813,12 @@ suggestAddTypeAnnotationToSatisfyConstraints sourceOpt Diagnostic{_range=_range,
813813
, "in the following constraint"
814814
, if multiple then "s" else " "
815815
, ".*arising from the literal ‘(.+)’"
816-
, if inArg then ".+In the.+argument" else ""
817-
, if at then ".+at ([^ ]*)" else ""
818-
, if inExpr then ".+In the expression" else ""
819-
, ".+In the expression"
820816
]
821817
#else
822818
pat multiple at inArg inExpr = T.concat [ ".*Defaulting the following constraint"
823819
, if multiple then "s" else ""
824820
, " to type ‘([^ ]+)’ "
825821
, ".*arising from the literal ‘(.+)’"
826-
, if inArg then ".+In the.+argument" else ""
827-
, if at then ".+at ([^ ]*)" else ""
828-
, if inExpr then ".+In the expression" else ""
829-
, ".+In the expression"
830822
]
831823
#endif
832824
codeEdit range ty lit replacement =

0 commit comments

Comments
 (0)