Skip to content

Improve/complete the GHCi :doc command

The :doc command, so far implemented as a tech preview, could be a lot nicer:

  • For a type constructor, it should also show the data constructors and their documentation
  • It should include documentation on function arguments.
  • For records it should include any docs on the fields.

Overall I think it should work roughly like the :info command, but of course enhanced by the docstrings.

Trac metadata
Trac field Value
Version 8.6.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information