ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

Brandon S. Allbery KF8NH allbery at
Sat Nov 8 22:35:32 EST 2008

On 2008 Nov 8, at 22:13, Rohan Drape wrote:
> Emacs sends text to processes in packets of at most 255 characters.
> In between these ghci now gets a ^D character sequence inserted into
> the text.  This did not happen previously (ie. with 6.8.2).

This sounds like a bug:  either editline or ghci assumes that when it  
successfully reads data which lacks a line terminator than it has seen  
an EOF, so inserts a ^D.  But if it received the data at the maximum  
tty buffer size (255) then there is no trigger character.

(This is easy enough to work around:  special-case reads of length  
255.  But in reality, this means something is Doing It Wrong.)

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at
system administrator [openafs,heimdal,too many hats] allbery at
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Glasgow-haskell-users mailing list