#3544: Add instance IsString ShowS where fromString = showString
-----------------------------+----------------------------------------------
Reporter:  basvandijk        |          Owner:                  
    Type:  proposal          |         Status:  new             
Priority:  normal            |      Component:  libraries/base  
 Version:  6.10.4            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 It would be really nice to use
 [http://www.haskell.org/ghc/docs/latest/html/users_guide/type-class-
 extensions.html#overloaded-strings OverloadedStrings] when writing a
 definition of
 
[http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:showsPrec
 showsPrec] in an instance for Show.

 The attached patch adds the necessary instance to {{{base/GHC/Show.lhs}}}:

 {{{
 instance IsString ShowS where
     fromString = showString
 }}}

 Note that this does require {{{TypeSynonymInstances}}}.

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