These types are now very commonly used in Haskell and it would be very helpful to be able to use them directly in the arguments record. I'd think that adding the dependency on the text package probably isn't too big a deal since it's part of Haskell Platform. Not sure if you're OK the dependency on system-filepath, which is not part of HP.
@ndmitchell replied:
bytestring should probably also go on that list as String-like things that should be supported. I'd much rather avoid the dependency on text/filepath though, since I have deliberately tried to keep the dependencies of cmdargs very light, since it is such a small piece of most applications.
I wonder if there is some scope for going via IsString instances (which is probably what we really want), although can't immediately thing how that should be done...
From http://code.google.com/p/ndmitchell/issues/detail?id=580
These types are now very commonly used in Haskell and it would be very helpful to be able to use them directly in the arguments record. I'd think that adding the dependency on the
text
package probably isn't too big a deal since it's part of Haskell Platform. Not sure if you're OK the dependency on system-filepath, which is not part of HP.@ndmitchell replied:
bytestring should probably also go on that list as String-like things that should be supported. I'd much rather avoid the dependency on text/filepath though, since I have deliberately tried to keep the dependencies of cmdargs very light, since it is such a small piece of most applications.
I wonder if there is some scope for going via IsString instances (which is probably what we really want), although can't immediately thing how that should be done...