so, if I have dependencies = base, filepath in ipkg, then :show loaded will show Data.Vect and Data.FilePath and Data.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 as show import from purescript)
show loaded_modules - all available modules from all available packages ( same as show loaded from purescript)
show imported_packages - IF before I did :package "filepath" THEN will show filepath - imported completely ELSEIF before I did import Data.Vect THEN will show base - imported partially
show loaded_packages - if dependencies = base, filepath then will show base, filepath
Motivation
will be used in https://github.com/idris-community/idris2-lsp/issues/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