#1671: Cannot ^C out of certain computations in GHCi
-------------------------------------+--------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-------------------------------------+--------------------------------------
Old description:
> ___ ___ _
> / _ \ /\ /\/ __(_)
> / /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell
> 98.
> / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_| Type :? for help.
>
> Loading package base ... linking ... done.
> Prelude> let a = 1 : a
> Prelude> last a
> ^C
> ^C
> ^C
New description:
{{{
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
Prelude> let a = 1 : a
Prelude> last a
^C
^C
^C
}}}
Comment (by Isaac Dupree):
Maybe this is related to (in compiled code, which `last` is) loops that do
no allocation not being pre-emptible. Possibly it is a simplified version
of #1583 where the computation never terminates, so GHCi never gets around
to the {{{<interactive>: exception :: GhcException}}} state (I couldn't
get ghci to respond in any way, even after lots of Control-C's, in this
`last` example).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1671>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs