question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Case split feature

See original GitHub issue

One thing I really miss from, say, Idris is case splitting a variable in a function definition or a case expression.

For instance, having a type like

data FooType = Foo | Bar Int

and having written

foo :: FooType -> Smth
foo x = undefined

doing the suggested “case split” on x should result in foo x = undefined replaced with the corresponding patterns like

foo :: FooType -> Smth
foo Foo = undefined
foo (Bar n) = undefined

Doing this on x in case x context should behave similarly.

Being able to add missing clauses would also be super cool!

I know this request sounds a bit vague, so please let me know if you’d like me to elaborate!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
rikvdkleijcommented, Aug 24, 2020

Making some progress in implementing in case splitting

casesplit3

1reaction
0xd34df00dcommented, Aug 24, 2020

Yay @rikvdkleij this looks awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Case Split: Resolve Cases Efficiently
Case Split helps untangle unrelated issues within a Case · Solve Cases faster by keeping cases to a single issue · Split cases...
Read more >
Customer Case Studies - Feature Flag Managment Solutions
Rapidly meet changing customer needs. Split puts us one step closer to continuous deployment, which is our ultimate goal.
Read more >
Work with related cases after you "split" a case - IBM
This feature allows you to create a new case while working on a case and copy any case properties and documents from the...
Read more >
Split (Analysis)—ArcGIS Pro | Documentation
ArcGIS geoprocessing tool that splits an input with overlaying features to create a subset of output feature classes.
Read more >
SPLIT Function in Google Sheets with Example Use Cases
Delimiters in SPLIT are case sensitive. · The SPLIT function requires enough “space” for its output. · You can input a range as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found