haskeline icon indicating copy to clipboard operation
haskeline copied to clipboard

Handling Interrupt on MacOS arm64

Open aboeglin opened this issue 1 year ago • 0 comments

I've been playing with Haskeline for the past hours and found a small issue that seems related to this one: https://github.com/judah/haskeline/issues/162. So whenever I hit ctrl-C the program exits although the interrupt handler makes it just loop, but also after some more inputs in the terminal it shows the stdin error at the bottom. The code itself is mainly the example from the documentation but I'd happily put a small reproducible example together if needed.

Here is the output from the terminal, ctrl-C was pressed right after the >.

> 

bash-5.2$ <stdin>: hGetChar: hardware fault (Input/output error)

aboeglin avatar Jun 16 '23 22:06 aboeglin