[GHC] #14002: Defining a function in GHCi results in different strictness behavior than defining it in a file
GHC
ghc-devs at haskell.org
Thu Jul 20 21:20:14 UTC 2017
#14002: Defining a function in GHCi results in different strictness behavior than
defining it in a file
-------------------------------------+-------------------------------------
Reporter: cocreature | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.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 sgraf):
Similarly, `let flippedConst f = seq f (\x -> x)` will make `seq
(flippedConst undefined) ()` return `()`, while `let flippedConst f = seq
f id` will make it diverge.
I expected divergence in both cases, btw.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14002#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list