-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
an empty target is an empty string #4583
Conversation
/cc @dcoutts |
Looks OK to me, by the way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I looked at all use sites of showTargetSelector
and it looks like it is only used in error messages. So the change seems to be safe to apply; however, from looking at the TargetSelector
definition I don't understand in which cases we can get an empty list here.
Anyhoozle, I think I'm going to merge this. |
I'm generally down on using empty strings as a sigil. Does turning the return type into Maybe cause lots of knock on changes? |
I don't think using |
+1, it's called show TargetSelector after all.
(On the other hand with Maybe we could do |
OK, I trust your judgment :) |
without this
cabal new-run
without targets errors with an irrefutable pattern