[Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

Jeremy Shaw jeremy at n-heptane.com
Tue Jan 26 13:08:31 EST 2010


On Tue, Jan 26, 2010 at 11:55 AM, Felipe Lessa <felipe.lessa at gmail.com>wrote:

> On Tue, Jan 26, 2010 at 11:52:34AM -0600, Jeremy Shaw wrote:
> > +  toConstr _     = error "toConstr"
> > +  gunfold _ _    = error "gunfold"
>
> Isn't it better to write
>
>  error "Data.Text.Text: toConstr"
>
> Usually I try to do this as we don't get stack traces for _|_.
>
>
I think so... none of the other instances do.. but I guess that is not a
very good excuse :)

- jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100126/72e92ab3/attachment.html


More information about the Haskell-Cafe mailing list