Case split feature
See original GitHub issueOne 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:
- Created 3 years ago
- Reactions:4
- Comments:18 (15 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Making some progress in implementing in case splitting
Yay @rikvdkleij this looks awesome!