RE: Bringing some observable sharing to GHCi

2017-11-02 Thread Simon Peyton Jones via ghc-devs
.de>; ghc-devs <ghc-devs@haskell.org> Subject: Re: Bringing some observable sharing to GHCi Not being able to :print an exception would be quite annoying. Do TypeReps need to be cyclic? Observable sharing can be done with StableName, but that would be a bit pile of hassle in the printer

Re: Bringing some observable sharing to GHCi

2017-11-02 Thread Simon Marlow
Not being able to :print an exception would be quite annoying. Do TypeReps need to be cyclic? Observable sharing can be done with StableName, but that would be a bit pile of hassle in the printer. Maybe exceptions warrant a special case. Cheers Simon On 29 October 2017 at 20:40, David Feuer

Re: Bringing some observable sharing to GHCi

2017-10-29 Thread Joachim Breitner
Hi, Am Sonntag, den 29.10.2017, 16:40 -0400 schrieb David Feuer: > 1. To be able to display cyclical data in some sensible way. > > > x = "hi" : x > > x `seq` () > > :print x > > should print some useful representation of x. the best that I know for this is the hack that calls itself