Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Y Yampa Book
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Gerold Meisinger
  • Yampa Book
  • Issues
  • #1
Closed
Open
Issue created Sep 24, 2021 by Gerold Meisinger@gerold.meisingerOwner

io-manager, stack GHCI and control-C behaviour on Windows

Apparently there were long standing issues with control-C behaviour of GHCi and console functions (buffering) on Windows. Those very finally resolved in GHC 9.0 with io-manager=native, see:

  • https://mail.haskell.org/pipermail/ghc-devs/2020-July/019053.html
  • https://gitlab.haskell.org/ghc/ghc/-/merge_requests/1224
  • https://downloads.haskell.org/ghc/latest/docs/html/users_guide/9.0.1-notes.html?highlight=managernew i/o manager

However:

  • If I do use threadDelay with io-manager=native the program hangs up.
  • If I do use hSetBuffering I have to use io-manager=native.
  • If I do run with stack ghci and interrupt the runtime with Control+C I get strange behaviours in the console.
  • If I do run with plain ghci it works but I cannot use stack modules. => I have to restart the terminal and GHCi everytime I interrupted with Control+C

It may be an issue with stack only and not ghci, see:

  • https://github.com/commercialhaskell/stack/issues/610
  • https://github.com/commercialhaskell/stack/issues/4737
  • https://haskell-foundation.slack.com/archives/C023K8HTTCH/p1631037988005300

but everyone is acting like that doesn't happen and no one uses Haskell on Windows anyway o_O

Assignee
Assign to
Time tracking