
8 Dec
2011
8 Dec
'11
5:44 p.m.
On 9 December 2011 09:39, Iavor Diatchki
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".
+1 to both. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com