Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,868
    • Issues 4,868
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 456
    • Merge requests 456
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • 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
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #21663
Closed
Open
Created May 27, 2022 by Bodigrim@BodigrimDeveloper

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.

Edited May 27, 2022 by Bodigrim
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking