#5806: Make TimeLocale an instance of Def
------------------------------+---------------------------------------------
 Reporter:  chrisdone         |          Owner:                    
     Type:  feature request   |         Status:  new               
 Priority:  normal            |      Component:  libraries/old-time
  Version:  7.2.2             |       Keywords:                    
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple  
  Failure:  None/Unknown      |       Testcase:                    
Blockedby:                    |       Blocking:                    
  Related:                    |  
------------------------------+---------------------------------------------
 Whenever I use formatTime it's always with defaultTimeLocale. Why not make
 TimeLocale an instance of Def from Data.Default?
 http://hackage.haskell.org/package/data-default  where def =
 defaultTimeLocale.

 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.

 Just an idea.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5806>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to