Haskell : display/get list of all user defined functions

前端 未结 2 1889
一整个雨季
一整个雨季 2021-01-01 21:06

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

相关标签:
2条回答
  • 2021-01-01 21:46

    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.

    0 讨论(0)
  • 2021-01-01 21:51

    When in ghci, use :browse or just :bro after loading the file. You may also browse unloaded modules via :browse Foo.Bar.Baz.

    0 讨论(0)
提交回复
热议问题