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
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
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
> >
> &
> 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
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
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
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
> >
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
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
>
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
10 matches
Mail list logo