haskell / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

winio: Add support for WINIO to haskeline. #140

Closed Mistuke closed 4 years ago

Mistuke commented 4 years ago

Hi,

We are looking to land a new I/O manager for Windows(winio) in GHC 8.12, See [1]

This package is a boot library and has used an internal GHC module (namely GHC.IO.FD) as such it needs an update so that it works with winio.

The I/O manager is a runtime decision so users can switch at startup, this means that the library needs to dynamically be able to switch between winio and mio. The combinator (<!>) allows it to do so.

Change has been tested by bootstrapping GHC with new I/O manager enabled.

Thanks, Tamar

[1] https://gitlab.haskell.org/ghc/ghc/-/merge_requests/1224

judah commented 4 years ago

Thanks for the patch!