Haskell:显示/获取所有用户定义函数的列表 [英] Haskell : display/get list of all user defined functions

查看:144
本文介绍了Haskell:显示/获取所有用户定义函数的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Haskell中是否有一个命令显示(或列出)GHCi中已加载/定义的所有用户定义函数?谢谢

解决方案

要查看您在ghci提示符处进行的绑定(例如,使用 let < - ),请尝试:show bindings



如果您已经加载了一些模块,您可以使用:show modules 来获取已加载模块的名称,然后使用:browse ModuleName 从该模块列出范围内的所有内容。


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

解决方案

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.

这篇关于Haskell:显示/获取所有用户定义函数的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆