2009年2月8日星期日

uniread modification for ghc

$pty->syswrite(qq(:q\n), 3) and return 1 if $input eq qq(\x{4});

add this line before the 411th line:

$pty->syswrite($input, length($input));

this will make ghci able to quit on ctrl+d, instead of :q

没有评论: