Repeated :info giving different results
Simon Peyton-Jones
simonpj at microsoft.com
Mon Mar 21 04:01:19 EST 2005
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 at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Remi Turk
| Sent: 19 March 2005 23:22
| To: glasgow-haskell-bugs at haskell.org
| 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 at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list