RE: Show instance for SrcSpan

2014-10-06 Thread Simon Peyton Jones
By all means do so S From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of Alan & Kim Zimmerman Sent: 06 October 2014 13:59 To: ghc-devs@haskell.org Subject: Show instance for SrcSpan Is there any reason I can't put in a diff request to replace the derived Show ins

RE: Show instance for SrcSpan

2014-10-06 Thread p.k.f.holzenspies
lczyk Cc: ghc-devs@haskell.org Subject: Re: Show instance for SrcSpan True, but if you are using GHC generated stuff via the GHC API you sometimes do not want to have to implement Outputable for all your app types, when you can auto derive Show which mostly does what you need. On Mon, Oct 6, 2014 a

Re: Show instance for SrcSpan

2014-10-06 Thread Alan & Kim Zimmerman
t 06, 2014 at 03:27:49PM +0200, Alan & Kim Zimmerman wrote: > > Date: Mon, 6 Oct 2014 15:27:49 +0200 > > From: Alan & Kim Zimmerman > > To: Matthias Fischmann > > Cc: "ghc-devs@haskell.org" > > Subject: Re: Show instance for SrcSpan > > > &

Re: Show instance for SrcSpan

2014-10-06 Thread Matthias Fischmann
> Cc: "ghc-devs@haskell.org" > Subject: Re: Show instance for SrcSpan > > Not at all, just show as e.g. > > SrcSpan (RealSrcSpan (SrcSpanOneLine "./foo.hs" 4 1 6)) > > We just avoid showing the srcSpanFile / srcSpanLine / srcSpanSCol / > srcSpanECo

Re: Show instance for SrcSpan

2014-10-06 Thread Alan & Kim Zimmerman
0, Alan & Kim Zimmerman wrote: > > Date: Mon, 6 Oct 2014 14:59:03 +0200 > > From: Alan & Kim Zimmerman > > To: "ghc-devs@haskell.org" > > Subject: Show instance for SrcSpan > > > > Is there any reason I can't put in a diff request to replace th

Re: Show instance for SrcSpan

2014-10-06 Thread Matthias Fischmann
On Mon, Oct 06, 2014 at 02:59:03PM +0200, Alan & Kim Zimmerman wrote: > Date: Mon, 6 Oct 2014 14:59:03 +0200 > From: Alan & Kim Zimmerman > To: "ghc-devs@haskell.org" > Subject: Show instance for SrcSpan > > Is there any reason I can't put in a diff reque

Re: Show instance for SrcSpan

2014-10-06 Thread Alan & Kim Zimmerman
lan & 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 > >

Re: Show instance for SrcSpan

2014-10-06 Thread Johan Tibell
much information. On Mon, Oct 6, 2014 at 3:11 PM, Mateusz Kowalczyk 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 n

Re: Show instance for SrcSpan

2014-10-06 Thread Mateusz Kowalczyk
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 >

Show instance for SrcSpan

2014-10-06 Thread Alan & Kim Zimmerman
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 ___ ghc-devs mailing list ghc-devs@haskell.org