You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deriving option names from constructors, underscore is converted to '-' using asNamefunction. The same logic should apply when deriving values for options of algebraic types.
A canonical scenario that can't be implemented due to this issue is an option to enable warnings. The almost universal convention for this in compilers is something like:
-Wunused-imports
With cmdargs the best we can do today, at least w/o manually implementing Data instance, is either:
-Wunused_imports
or
--Wunused-imports
I think the fix for this would be to simply replace toLower with asName in reader_function. Obviously this would be a breaking change.
Would you be interested in this, either as a breaking change, or with a new annotation to enable this behavior?
The text was updated successfully, but these errors were encountered:
When deriving option names from constructors, underscore is converted to '-' using
asName
function. The same logic should apply when deriving values for options of algebraic types.A canonical scenario that can't be implemented due to this issue is an option to enable warnings. The almost universal convention for this in compilers is something like:
-Wunused-imports
With cmdargs the best we can do today, at least w/o manually implementing
Data
instance, is either:-Wunused_imports
or
--Wunused-imports
I think the fix for this would be to simply replace
toLower
withasName
inreader_
function. Obviously this would be a breaking change.Would you be interested in this, either as a breaking change, or with a new annotation to enable this behavior?
The text was updated successfully, but these errors were encountered: