Add instance IsString ShowS where fromString = showString
Edward Kmett
ekmett at gmail.com
Tue Oct 13 15:40:59 EDT 2009
-1.
A ShowS instance would interfere with any other anonymous reader-monad style
IsString instance.
-Edward Kmett
On Mon, Oct 5, 2009 at 5:23 AM, Nicolas Pouillard <
nicolas.pouillard at gmail.com> wrote:
> Excerpts from Bas van Dijk's message of Mon Oct 05 09:27:07 +0200 2009:
> > On Sun, Sep 27, 2009 at 10:51 PM, Bas van Dijk <v.dijk.bas at gmail.com>
> wrote:
> > > Hello,
> > >
> > > It would be really nice to use OverloadedStrings when constructing a
> > > ShowS, for example in a definition of showsPrec in an instance for
> > > Show.
> > >
> > > The patch attached in the ticket[3544] adds the necessary instance to
> > > base/GHC/Show.lhs:
> > >
> > > instance IsString ShowS where
> > > fromString = showString
> > >
> > > Note that this does require TypeSynonymInstances.
> > >
> > > Discussion period 2 weeks.
> > >
> > > regards,
> > >
> > > Bas
> > >
> > > [3544] http://hackage.haskell.org/trac/ghc/ticket/3544
> > >
> >
> > Just a reminder for this proposal. One week has passed and one to go.
> >
> > Any comments, +1 or -1?
>
> +1
>
> --
> Nicolas Pouillard
> http://nicolaspouillard.fr
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20091013/c778217b/attachment-0001.html
More information about the Libraries
mailing list