Nested case splitting doesn't work
See original GitHub issueI was hoping for the case split to work on the Bool
inside the newtype resulting in
foo :: Bar -> String
foo (Bar True) = ""
foo (Bar False) = ""
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Best way to do nested case statement logic in SQL Server
Show activity on this post. You could try some sort of COALESCE trick, eg: SELECT COALESCE( CASE WHEN condition1 THEN calculation1 ELSE NULL ......
Read more >Split=false doesn't work on nested list #36798 - GitHub
Split line separator show if I don't specify split=false on the parent List respectively. Environment, Info. antd, 4.22.2. React, 18.2.0. System ...
Read more >Nested case statements vs multiple criteria case statements
SET STATISTICS IO, TIME ON; Select case when a=1 and b=0 THEN 'True' when a=1 and b=1 then 'Trueish' when a=0 and b=0...
Read more >CASE statement Error in Beeline HIVE - Cloudera Community
sample nested case which can be used in hive. Select case when hour(split(split(hbid,"#")[1],"_")[1])== 0 then ... This should work. case when ...
Read more >Optimize SQL Queries with CASE Expressions in Unexpected ...
Open in app ... I don't use overly complex terms or examples. ... With Nested CASE, you can split the data into subgroups...
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
Thanks for reporting!
Because the
Bool
is not explicitly defined in type signature offoo
the current implementation does not work for this case. Will take a look how to fix this soon.Thanks for your feedback!
Yes, type synonyms are not resolved. I wonder if I should put effort into that.
Yeah okay but it doesn’t hurt 😄 Otherwise I have to make an exception.