Skip to content

Commit 988c498

Browse files
authored
Add wingman branding to code actions (#1555)
1 parent 0e84982 commit 988c498

File tree

1 file changed

+11
-9
lines changed
  • plugins/hls-tactics-plugin/src/Wingman

1 file changed

+11
-9
lines changed

plugins/hls-tactics-plugin/src/Wingman/Types.hs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,17 @@ data TacticCommand
6161

6262
-- | Generate a title for the command.
6363
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"
7375

7476

7577
------------------------------------------------------------------------------

0 commit comments

Comments
 (0)