Opened 4 years ago

Closed 4 years ago

#10847 closed feature request (fixed)

:info should print minimal definition

Reported by: osa1 Owned by: cocreature
Priority: lowest Milestone: 8.0.1
Component: GHCi Version: 7.11
Keywords: newcomer Cc: eir@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D1241
Wiki Page:


It'd be great if :info would print minimal definitions too. This way we can implement a typeclass that we learn about using :info without having to look at the haddocks.

Change History (8)

comment:1 Changed 4 years ago by goldfire

Cc: eir@… added

Yes, please.

comment:2 Changed 4 years ago by simonpj

I think that would be good. Can anyone offer a patch? Just a minor modification to the code that prints the definition in response to :info.

comment:3 Changed 4 years ago by cocreature

Hey, I'd like to take a stab at this. I am a newcomer but I managed to get a prototype working, so it should mostly be the case of changing the formatting and adding a testcase. I'll try to send a patch in the next weeks.

comment:4 Changed 4 years ago by cocreature

Owner: set to cocreature

comment:5 Changed 4 years ago by thomie

Milestone: 8.0.1

comment:6 Changed 4 years ago by thomie

Differential Rev(s): Phab:D1241

comment:7 Changed 4 years ago by Thomas Miedema <thomasmiedema@…>

In 43eb1dc5/ghc:

Show minimal complete definitions in ghci (#10847)

Show the minimal complete definition on :info in ghci. They
are shown like MINIMAL pragmas in code. If the minimal complete
definition is empty or only a specific method from a class is
requested, nothing is shown.

Reviewed By: simonpj, austin, thomie

Differential Revision:

comment:8 Changed 4 years ago by thomie

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.