hIsTerminalDevice can benefit from documenting Windows issues
Summary
Haddocks for GHC.IO.Handle.hIsTerminalDevice
could benefit from the discussion of Windows-related issues. Namely, this function fails to recognise MinTTY terminals, used by MSYS or Cygwin. See discussion of System.Console.ANSI.hSupportsANSI
for more context.
I hit this during debugging of https://github.com/NorfairKing/feedback/pull/7.
Proposed improvements or changes
Haddocks should suggest using System.Win32.MinTTY.isMinTTYHandle
in conjunction with hIsTerminalDevice
.