Is there a command in Haskell which displays (or get as a list of) all the user defined functions which have been loaded/defined in the GHCi? Thanks
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
To see bindings you've made at the ghci prompt (e.g. with let
or <-
), try :show bindings
.
If you've loaded some modules, you can use :show modules
to get the names of loaded modules and then :browse ModuleName
to list everything in scope from that module.
回答2:
When in ghci, use :browse
or just :bro
after loading the file. You may also browse unloaded modules via :browse Foo.Bar.Baz
.