Haskell statements in GHCi being interrupted seems to break cmd
问题 I'm just beginning with Haskell and playing around with GHCi in cmd. After trying out something I saw on PPCG, I ran into an issue. Whenever I interrupt fix with control-C, everything dies: C:\Users\Scrooble>ghci GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help Prelude> import Data.Function Prelude Data.Function> fix (\x -> x + 1) In^tCerrupte d. C:\Users\Scrooble>Prelude Data.Function> exit (hangs) The ^ and C were my keyboard interrupt. The exit is mine as well. Cerrupted is