|
RE: Repeated :info giving different results: msg#00126lang.haskell.glasgow.bugs
The trouble is that instance declarations could be in *any* module. So at the moment GHC just reports the instances it knows about. As time goes on, it knows about more modules, so it may report more instances. I agree that it's odd that simply reporting one lot makes it know about more! And I don't claim that this is desirable behaviour. It'd be better if you saw all the instance declarations that can be written in the current scope using unqualified names. I'll file this as a bug. Yell if it's hurting you; otherwise it'll be low priority. Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs- | bounces@xxxxxxxxxxx] On Behalf Of Remi Turk | Sent: 19 March 2005 23:22 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: Repeated :info giving different results | | Hi, | | every once in a while, a screenshot says more than a thousand words. | And it's "global": ":i Bool" followed by ":i Int" shows exactly | the same symptom. | | Groeten, | Remi | | | ~% ghci | ___ ___ _ | / _ \ /\ /\/ __(_) | / /_\// /_/ / / | | GHC Interactive, version 6.4, for Haskell 98. | / /_\\/ __ / /___| | http://www.haskell.org/ghc/ | \____/\/ /_/\____/|_| Type :? for help. | | Loading package base-1.0 ... linking ... done. | | Prelude> :i Bool | data Bool = False | True -- <wired into compiler> | instance Eq Bool -- Imported from GHC.Base | instance Ord Bool -- Imported from GHC.Base | | Prelude> :i Bool | data Bool = False | True -- <wired into compiler> | instance Bounded Bool -- Imported from GHC.Enum | instance Enum Bool -- Imported from GHC.Enum | instance Eq Bool -- Imported from GHC.Base | instance Ord Bool -- Imported from GHC.Base | instance Read Bool -- Imported from GHC.Read | instance Show Bool -- Imported from GHC.Show | | Prelude> | | -- | Nobody can be exactly like me. Even I have trouble doing it. | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1167383 ] GHCi reports too few instances, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-1163018 ] Profiling broken under windows for ghc-6.4?, SourceForge.net |
| Previous by Thread: | Repeated :info giving different results, Remi Turk |
| Next by Thread: | Re: Repeated :info giving different results, Remi Turk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |