[GHC] #831: GHCi user interface bug
GHC
trac at galois.com
Mon Jan 22 05:41:13 EST 2007
#831: GHCi user interface bug
---------------------+------------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: low | Milestone: 6.6.1
Component: GHCi | Version: 6.4.2
Severity: minor | Resolution:
Keywords: | Difficulty: Unknown
Testcase: N/A | Architecture: x86
Os: Windows |
---------------------+------------------------------------------------------
Old description:
> GHCi can do some weird things, with the letter g and the up arrow:
>
> > ghci
> ghci> :m Control.Concurrent
> ghci> threadDelay 5000000
> (now, while thread delay is running, press the up arrow once)
> (once the computation has returned, the following will be on the line)
> (i.e. you don't type threadDelay again)
> ghci> threadDelay 5000000
> (now just press enter)
>
> <interactive>:1:0: Not in scope: `ghreadDelay'
>
> This works for any computation that runs long enough for the user to
> press up while its still going. The result is always a g replacing the
> first letter - I have had gain for main etc. And the buffer always
> appears correct to visual inspection.
New description:
GHCi can do some weird things, with the letter g and the up arrow:
{{{
ghci> :m Control.Concurrent
ghci> threadDelay 5000000
}}}
(now, while thread delay is running, press the up arrow once)
(once the computation has returned, the following will be on the line)
(i.e. you don't type threadDelay again)
{{{
ghci> threadDelay 5000000
}}}
(now just press enter)
{{{
<interactive>:1:0: Not in scope: `ghreadDelay'
}}}
This works for any computation that runs long enough for the user to press
up while its still going. The result is always a g replacing the first
letter - I have had gain for main etc. And the buffer always appears
correct to visual inspection.
Comment (by simonmar):
Formatting only
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/831>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list