#1126: Add Data.String, containing IsString(fromString), to base
----------------------------+-----------------------------------------------
 Reporter:  igloo           |          Owner:         
     Type:  proposal        |         Status:  closed 
 Priority:  normal          |      Milestone:  Not GHC
Component:  libraries/base  |        Version:  6.6    
 Severity:  normal          |     Resolution:  fixed  
 Keywords:                  |     Difficulty:  Unknown
 Testcase:                  |   Architecture:  Unknown
       Os:  Unknown         |  
----------------------------+-----------------------------------------------
Changes (by igloo):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 David Roundy proposed adding Eq as a requirement for the IsString class so
 pattern matching wouldn't need an Eq constraint, but Lennart Augustsson
 pointed out that you may wish to use IsString types for which Eq cannot be
 (usefully) defined, such as an AST type he has.

 Neil Mitchell asked about adding a toString function to the class. Lennart
 Augustsson pointed out that Num has fromInteger but not toInteger.
 Presumably toString too could not be usefully defined for his AST type.

 Applied:
 {{{
 * Add Data.String, containing IsString(fromString); trac proposal #1126
 This is used by the overloaded strings extension (-foverloaded-strings in
 GHC).
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1126>
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