#5998: GHCi's :info to return all the visible instances, not just the ones imported from currently loaded files -------------------------------+-------------------------------------------- Reporter: errge | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 7.6.2 Component: GHCi | Version: 7.4.1 Resolution: fixed | Keywords: ghci :info Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by diatchki):
* status: new => closed * resolution: => fixed Comment: I have documented the new `:info!` functionality. Just for future documentation, here is an example of the use case for this feature: In scope: {{{ Accessor Applicateive instance Monoid Int instance Monoid m => Applicative (Accessor m) }}} Not in scope: {{{ Monoid }}} With this setup, we can use the instance for `Applicateive (Accessor Int)` even though the name `Monoid` is not in scope, but `:info` will not show the relevant instance. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5998#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs