Add new commands to repl :show import
(to show already imported modules) and :show loaded
(all available)
#3410
Labels
:show import
(to show already imported modules) and :show loaded
(all available)
#3410
Motivation
will be used in idris-community/idris2-lsp#227
Examples
so, if I have
dependencies = base, filepath
inipkg
, then:show loaded
will showData.Vect
andData.FilePath
andData.FilePath.File
, etc.just like in purescript
Technical implementation
Alternatives considered
maybe better
show imported_modules
- modules in scope, e.g.import Data.Vect
(same asshow import
from purescript)show loaded_modules
- all available modules from all available packages ( same asshow loaded
from purescript)show imported_packages
- IF before I did:package "filepath"
THEN will showfilepath - imported completely
ELSEIF before I didimport Data.Vect
THEN will showbase - imported partially
show loaded_packages
- ifdependencies = base, filepath
then will showbase, filepath
Conclusion
The text was updated successfully, but these errors were encountered: