[GHC] #16089: seq is not cooperating with :sprint in GHCi as expected

GHC ghc-devs at haskell.org
Thu Dec 27 13:42:19 UTC 2018


#16089: seq is not cooperating with :sprint in GHCi as expected
-------------------------------------+-------------------------------------
        Reporter:  radrow            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  8.6.3
      Resolution:                    |             Keywords:  seq sprint
                                     |  strictness
Operating System:  Linux             |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #7253, #16096     |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 No, the current behavior is fine when there's no type signature. GHCi
 turns off the monomorphism restriction by default, so `x :: Num a => [a]`.
 It's a function, not an updateable thunk.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16089#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list