<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">sent from wrong account - message follows:<br><div><br><blockquote type="cite"><div>I've found most of the time library to be quite useful, but the parsing to be worthless (I've tried to get someone to prove me wrong already, and would be happy if someone could on this thread!). <br><br>Specifically, the formatTime function, if it ever strips out padding (by zeros or spaces), results in a time that is unparseable. The fact that formatTime and parseTime are not capable of being inverses of each other seems like a major flaw, when you think that this is not a parseable date:<br><br>2011/1/30 (because the month must be padded by zeros).<br><br>Even though it is very easy to print, and occurs commonly in the world.<br><br>Because of this, I use formatTime to write my times, and then have a custom parser to parse them back out. Which makes me think that this is a broken library<br><br>On Jun 27, 2011, at 10:37 AM, &lt;<a href="mailto:briand@aracnet.com">briand@aracnet.com</a>&gt; &lt;<a href="mailto:briand@aracnet.com">briand@aracnet.com</a>&gt; wrote:<br><br><blockquote type="cite">On Mon, 27 Jun 2011 11:15:28 +0300<br></blockquote><blockquote type="cite">Yitzchak Gale &lt;<a href="mailto:gale@sefer.org">gale@sefer.org</a>&gt; wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">The biggest shortcoming, in my opinion, is that the documentation<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">assumes that the reader is very familiar with the Haskell type<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">system, and with viewing type signatures and instance lists as an<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">integral and central part of the documentation.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">In particular, Haskell's standard numeric type classes and the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">conversion functions between them play a central role in the API<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">of Data.Time. But you wouldn't realize that unless you have read<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the type signatures and instance lists in the Haddocks very<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">carefully, and have thought about it for a while.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This is exactly right.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Another problem, as Malcolm pointed out, is that because of the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sheer size of the library, a quick-start guide for the common<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">cases would be extremely helpful for newcomers.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">That would be very, very helpful. &nbsp;I had a few working examples things were much better. &nbsp;Finding a starting place, any starting place, proved to be quite elusive. &nbsp;Also the fact that asking for the current time traps you in IO hell, doesn't help, although it's clear that it should be that way.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Brian<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Haskell-Cafe mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br></blockquote><blockquote type="cite"><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></blockquote><br></div></blockquote></div><br></body></html>