Skip to content

Commit b22027e

Browse files
committed
Add command for case splitting
1 parent add2aea commit b22027e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@
147147
"command": "hie.commands.showType",
148148
"title": "Haskell: Show type",
149149
"description": "Show type for the expression"
150+
},
151+
{
152+
"command": "hie.commands.caseSplit",
153+
"title": "Haskell: Split case",
154+
"description": "Generate pattern matches for the identifier under the cursor"
150155
}
151156
],
152157
"keybindings": [

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ function activateHieNoCheck(context: ExtensionContext, folder: WorkspaceFolder,
203203
registerHiePointCommand('hie.commands.liftTopLevel', 'hare:lifttotoplevel', context);
204204
registerHiePointCommand('hie.commands.deleteDef', 'hare:deletedef', context);
205205
registerHiePointCommand('hie.commands.genApplicative', 'hare:genapplicative', context);
206+
registerHiePointCommand('hie.commands.caseSplit', 'ghcmod:casesplit', context);
206207
hieCommandsRegistered = true;
207208
}
208209

0 commit comments

Comments
 (0)