PROPOSAL: Export "readEither" from Text.Read
Max Cantor
mxcantor at gmail.com
Mon Dec 12 11:32:43 CET 2011
very emphatic
+1 for me.
+1 for nubis bruno who works with me and I know supports this.
max
On Dec 12, 2011, at 5:52 PM, Simon Marlow wrote:
> On 08/12/2011 22:39, Iavor Diatchki wrote:
>> Hello,
>>
>> when writing simple String parsers, I find implementing this function
>> over and over:
>>
>> readEither :: Read a => String -> Either String a
>>
>> I just found out that it is already defined in the module "Text.Read"
>> in the "base" package but, sadly, it is not exported.
>> Would there be any objections if:
>> 1. I was to export it
>> 2. I was to add another convenience function "readMaybe :: Read a
>> => String -> Myabe a" defined in terms of "readEither".
>>
>> I can't think of any problems that this might cause and it would be
>> very helpful to me and my colleagues.
>>
>> Discussion period: 2 weeks, so until 22 December 2011.
>
> +1
>
> Simon
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
More information about the Libraries
mailing list