GHC: Ticket #5806: Make TimeLocale an instance of Def <p> Whenever I use formatTime it's always with defaultTimeLocale. Why not make <a class="missing wiki">TimeLocale?</a> an instance of Def from Data.Default? <a class="ext-link" href=""><span class="icon">​</span></a> where def = defaultTimeLocale. </p> <p> This would mean having to add data-default to GHC's distribution, but it's rather small and useful. The alternative is adding the instance in the data-default package, but then data-default depends on time-locale and we're still encouraging use of defaultTimeLocale. Swings and roundabouts. </p> <p> Just an idea. </p> en-us GHC Trac 1.0.1 snoyberg Mon, 23 Jan 2012 06:10:05 GMT <p> I like this idea. I also like the side-effect a lot: having Default in GHC's distribution would be a good thing IMO. I already use it in a number of places, and would encourage others to do so as well. </p> Ticket asr Mon, 23 Jan 2012 14:37:04 GMT cc set <ul> <li><strong>cc</strong> <em>andres.sicard.ramirez@…</em> added </li> </ul> Ticket igloo Tue, 31 Jan 2012 22:41:00 GMT status changed; difficulty, resolution set <ul> <li><strong>status</strong> changed from <em>new</em> to <em>closed</em> </li> <li><strong>difficulty</strong> set to <em>Unknown</em> </li> <li><strong>resolution</strong> set to <em>wontfix</em> </li> </ul> <p> You mean "data-default depends on old-locale" I assume? If so then that's not a problem, as everyone will already have old-locale anyway as it comes with GHC and the Haskell Platform. Adding packages to GHC unnecessarily is a bad idea as it increases our workload, and makes it harder for other people to maintain them. </p> Ticket