Opened 8 weeks ago

#15784 new bug

:doc shouldn't report <has no documentation> for a data constructor when it can show docs for the type constructor of the same name and type

Reported by: sjakobi Owned by:
Priority: normal Milestone:
Component: GHCi Version: 8.6.1
Keywords: newcomer Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Poor/confusing error message Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

λ import Data.Monoid
λ :doc Sum
<has no documentation>

 Monoid under addition.

 >>> getSum (Sum 1 <> Sum 2 <> mempty)
 3

I think it would be nicer if we could elide the <has no documentation> message for the Sum data constructor here.

Change History (0)

Note: See TracTickets for help on using tickets.