[GHC] #2986: :info printing instances often isn't wanted

GHC cvs-ghc at haskell.org
Mon Mar 18 22:47:52 CET 2013


#2986: :info printing instances often isn't wanted
---------------------------------+------------------------------------------
    Reporter:  Remi              |       Owner:  Remi            
        Type:  feature request   |      Status:  new             
    Priority:  lowest            |   Milestone:  7.6.2           
   Component:  GHCi              |     Version:  6.10.1          
    Keywords:  :info instances   |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by Remi):

 This is probably going to be the longest standing feature request ever,
 but half a year after losing the previous version of my patch I got around
 to creating a new one. However, before I polish and post it, I'd like to
 get you guys' opinion on something I hacked^Wadded to it:

 {{{
 *InteractiveUI Control.Monad> :instances Monad
 Monad GHCi
 Monad Lexer.P
 Monad (Either e)
 Monad m => Monad (InputT m)
 Monad Maybe
 Monad m => Monad (GHC.GhcT m)
 Monad Ghc
 Monad []
 Monad IO
 Monad ((->) r)
 *InteractiveUI Control.Monad>
 *InteractiveUI Control.Monad> :i Monad []
 class Monad m where
   (>>=) :: m a -> (a -> m b) -> m b
   (>>) :: m a -> m b -> m b
   return :: a -> m a
   fail :: String -> m a
         -- Defined in `GHC.Base'
 {- (->) r, [], Either e, Ghc, GHCi, GhcT m, InputT m, IO, Maybe,
    P -}
 data [] a = [] | a : [a]        -- Defined in `GHC.Types'
 {- Alternative, Applicative, Eq, Functor, Monad, MonadPlus, Ord,
    Outputable, PrintfArg, PrintfType, Read, Show -}
 }}}

 The question being, what do you think about the instance-summary with
 :info?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2986#comment:22>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list