
#10160: GHCi :sprint has odd/unhelpful behavior for values defined within the REPL -------------------------------------+------------------------------------- Reporter: bitemyapp | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Resolution: | Keywords: :sprint Operating System: Unknown/Multiple | thunk evaluation non-strictness Type of failure: Incorrect result | laziness runtime ghci repl at runtime | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by bitemyapp): Yeah Carter had pointed me to the enumFromTo example which has behavior more like what I would expect. The optimization being performed makes sense, the inconsistencies do not. This would appear to mean I am limited to _|_ for reliably demonstrating what values as a general class will or won't get evaluated. Is there something more visual that wouldn't surprise beginners too much? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10160#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler