Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell : display/get list of all user defined functions

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

like image 564
artella Avatar asked Apr 22 '12 21:04

artella


2 Answers

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.

like image 112
Ben Millwood Avatar answered Oct 17 '22 19:10

Ben Millwood


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

like image 10
Daniel Wagner Avatar answered Oct 17 '22 18:10

Daniel Wagner