"magic" package names for consistency with import (see function Data.magicPack)
name spaces currently in scope
if none of the previous works, do name resolution and if it results in a type or class name, browse the corresponding environment.
Background: try to find out in the REPL which functions are defined in the type BitSet. Because :help BitSet shows only the data constructor (which is not well documented, but hey, this is life ...), this is almost impossible. The only possibility is this:
> type WTF = BitSet
> :help WTF
and this then contains a link to the data type BitSet documentation.
Here is a sample session:
It would be great if
:browse
would do:import
(see functionData.magicPack
)Background: try to find out in the REPL which functions are defined in the type
BitSet
. Because:help BitSet
shows only the data constructor (which is not well documented, but hey, this is life ...), this is almost impossible. The only possibility is this:and this then contains a link to the data type
BitSet
documentation.