File tree 1 file changed +11
-9
lines changed
plugins/hls-tactics-plugin/src/Wingman 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,17 @@ data TacticCommand
61
61
62
62
-- | Generate a title for the command.
63
63
tacticTitle :: TacticCommand -> T. Text -> T. Text
64
- tacticTitle Auto _ = " Attempt to fill hole"
65
- tacticTitle Intros _ = " Introduce lambda"
66
- tacticTitle Destruct var = " Case split on " <> var
67
- tacticTitle Homomorphism var = " Homomorphic case split on " <> var
68
- tacticTitle DestructLambdaCase _ = " Lambda case split"
69
- tacticTitle HomomorphismLambdaCase _ = " Homomorphic lambda case split"
70
- tacticTitle DestructAll _ = " Split all function arguments"
71
- tacticTitle UseDataCon dcon = " Use constructor " <> dcon
72
- tacticTitle Refine _ = " Refine hole"
64
+ tacticTitle = (mappend " Wingman: " . ) . go
65
+ where
66
+ go Auto _ = " Attempt to fill hole"
67
+ go Intros _ = " Introduce lambda"
68
+ go Destruct var = " Case split on " <> var
69
+ go Homomorphism var = " Homomorphic case split on " <> var
70
+ go DestructLambdaCase _ = " Lambda case split"
71
+ go HomomorphismLambdaCase _ = " Homomorphic lambda case split"
72
+ go DestructAll _ = " Split all function arguments"
73
+ go UseDataCon dcon = " Use constructor " <> dcon
74
+ go Refine _ = " Refine hole"
73
75
74
76
75
77
------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments