首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ocaml utop中的show_module繁琐

ocaml utop中的show_module繁琐
EN

Stack Overflow用户
提问于 2016-03-21 03:34:36
回答 1查看 154关注 0票数 4

我使用的是带有Core.Std模块的ocaml utop。

要查看模块的帮助,我必须使用别名链接,如下所示:

代码语言:javascript
复制
utop # #show_module Array;;
module Array = Core_kernel.Std_kernel.Array                                                                                            

utop # #show_module Core_kernel.Std_kernel.Array;;
module Array = Core_kernel.Std_internal.Array                                                                                          

utop # #show_module Core_kernel.Std_internal.Array;;
module Array = Core_kernel.Core_array

最后,show_module on将显示信息。有没有更快的方法?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2018-10-01 16:12:03

为了完整性,丹尼尔在评论中提到的拉取请求已经合并,现在utop#show_module方面更聪明。

代码语言:javascript
复制
utop # #show_module Array;;

module Array = Base__.Array
module Array = Base.Array
module Array :
  sig
    type 'a t = 'a array
    val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
    val t_of_sexp : (Sexp.t -> 'a) -> Sexp.t -> 'a t
    val sexp_of_t : ('a -> Sexp.t) -> 'a t -> Sexp.t
    [...]
  end
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36118521

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档