Skip to content

GHCi's :doc doesn't find the documentation for some class methods

While :doc reliably finds the docs for classes like Foldable and Monad, it fails for some methods.

λ :doc return
 Inject a value into the monadic type.
λ :doc foldr
<has no documentation>
λ :doc show
<has no documentation>

So far I haven't been able to see a pattern there.

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