[GHC] #10847: :info should print minimal definition

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: feature | Status: new request | Priority: lowest | Milestone: Component: GHCi | Version: 7.11 Keywords: newcomer | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: GHCi | Version: 7.11 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by goldfire): * cc: eir@… (added) Comment: Yes, please. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: GHCi | Version: 7.11 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (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`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: GHCi | Version: 7.11 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: cocreature Type: feature request | Status: new Priority: lowest | Milestone: Component: GHCi | Version: 7.11 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by cocreature): * owner: => cocreature -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: cocreature Type: feature request | Status: new Priority: lowest | Milestone: 8.0.1 Component: GHCi | Version: 7.11 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: Phab:D1241 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * related: => Phab:D1241 * milestone: => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: cocreature Type: feature request | Status: new Priority: lowest | Milestone: 8.0.1 Component: GHCi | Version: 7.11 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D1241 -------------------------------------+------------------------------------- Changes (by thomie): * differential: => Phab:D1241 * related: Phab:D1241 => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10847: :info should print minimal definition
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner: cocreature
Type: feature request | Status: new
Priority: lowest | Milestone: 8.0.1
Component: GHCi | Version: 7.11
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions: Phab:D1241
-------------------------------------+-------------------------------------
Comment (by Thomas Miedema

#10847: :info should print minimal definition -------------------------------------+------------------------------------- Reporter: osa1 | Owner: cocreature Type: feature request | Status: closed Priority: lowest | Milestone: 8.0.1 Component: GHCi | Version: 7.11 Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D1241 -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10847#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC