Skip to content

GHCi: strange behaviour after CTRL-C, followed by 'hPutChar: resource vanished (Broken Pipe)' when quitting

Example: (launching GHCi from Terminal.app)

GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> 1
1
Prelude> [1..]
^CPrelude> 1
^CPrelude> 10
^CPrelude> 1+2
^CPrelude> :q
<stdout>: hPutChar: resource vanished (Broken pipe)

This behaviour does not occur when I run GHCi from within Aquamacs (some output elided):

GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> 1
1
Prelude> [1..]
[1,2,3,4,5, ... 475,476,47  ^C ^C7,478,479,480, ... 539,540,541Interrupted.
Prelude> 1
1
Prelude> :q
Leaving GHCi.

Process haskell finished

I'm using the Haskell Platform for Mac OSX, 2012.2.0.0 32 bit, running on OSX 10.6.8.

Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information