Show instance for SrcSpan

Johan Tibell johan.tibell at gmail.com
Mon Oct 6 13:15:02 UTC 2014


Aside: I really miss derived Show instances in GHC. The Outputable class is
only really useful if you already know how things work. If you e.g. want to
see the AST used to represent some piece of Haskell code, in all its glory,
the Outputable instances aren't useful because they elide too much
information.

On Mon, Oct 6, 2014 at 3:11 PM, Mateusz Kowalczyk <fuuzetsu at fuuzetsu.co.uk>
wrote:

> On 10/06/2014 01:59 PM, Alan & Kim Zimmerman wrote:
> > Is there any reason I can't put in a diff request to replace the derived
> > Show instance for SrcSpan with a handcrafted one that does not
> exhausively
> > list the constructors, making it more readable?
> >
> > Alan
> >
>
> Why? If you're looking for pretty output then you should be changing
> Outputable.
>
>
> --
> Mateusz K.
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20141006/a9dda448/attachment.html>


More information about the ghc-devs mailing list