Re: Proposal: Num instance for tuples

2012-10-18 Thread Henning Thielemann
On Thu, 18 Oct 2012, Twan van Laarhoven wrote: One piece of utility code that I find myself writing over and over again is the pointwise Num instance for tuples, i.e. For my taste, writing 2 :: (Int, Integer) abs (x,y) should yield a compiler error and the compiler should not try to in

Re: ``Orphan instances'' should be avoided anyway.

2008-08-11 Thread Henning Thielemann
On Tue, 12 Aug 2008 [EMAIL PROTECTED] wrote: > I just would like to point out that there is nothing inherently bad about > what GHC calls ``orphan instances''. > > From a code structuring point of view, > I frequently ``consider orphan'' instances > useful for separation of concerns. The problem

Re[2]: [Haskell-cafe] Announce: ghc-core, command line pager for reading GHC Core

2008-05-23 Thread Henning Thielemann
On Fri, 23 May 2008, Bulat Ziganshin wrote: Hello Henning, Friday, May 23, 2008, 8:31:24 PM, you wrote: would guarantee speed in every case. Or I can SPECIALISE the function, then the function will only be called, but with polymorphism overhead eliminated. This would only work for a restrict

Re: [Haskell-cafe] Announce: ghc-core, command line pager for reading GHC Core

2008-05-23 Thread Henning Thielemann
On Fri, 23 May 2008, Henning Thielemann wrote: An even more advanced tool could show differences between two Core listings. Say I have a program which runs too slow. But if I change a small detail it runs significantly faster - I want to know, how did my change in the Haskell file modified

Re: [Haskell-cafe] Announce: ghc-core, command line pager for reading GHC Core

2008-05-23 Thread Henning Thielemann
On Fri, 2 May 2008, Neil Mitchell wrote: Hi Don, Just a quick announcement, I've uploaded to hackage 'ghc-core' , a wrapper over ghc for displaying the optimised core and assembly language ghc produces from your programs. This is cool, but it still lags behind the facilities found in yhc-

Re: [Haskell-cafe] Announce: ghc-core, command line pager for reading GHC Core

2008-05-23 Thread Henning Thielemann
On Fri, 2 May 2008, Neil Mitchell wrote: Hi Don, Just a quick announcement, I've uploaded to hackage 'ghc-core' , a wrapper over ghc for displaying the optimised core and assembly language ghc produces from your programs. This is cool, but it still lags behind the facilities found in yhc-