[GHC] #14400: Make :sprint, :print, and :force work with cyclical structures

#14400: Make :sprint, :print, and :force work with cyclical structures -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: (none) Type: feature | Status: new request | Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{
t = "hi" : t :force t }}}
never completes, because GHC races around and around in a loop forever. It would seem better to keep a hashset of nodes that have already been visited to avoid getting stuck, and print out a reasonable representation of the graph. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14400 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14400: Make :sprint, :print, and :force work with cyclical structures -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): The GHCi debugger, which interactively forces data structures trying to figure out their types, could indeed do with Much Love. This would indeed be one thing one might try doing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14400#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC