我正在使用版本4的Ocaml.当我以交互方式定义某种类型时,解释器会在此之后立即打印出该类型的字符串表示:
# type foo = Yes | No;;         <-- This is what I entered
type foo = Yes | No             <-- This is what interpreter bounced
但是在我输入更多定义之后,有时我想再次看到该类型的文本表示.
在Haskell中,我可以输入":t foo".
我怎么能在Ocaml中这样做?
ocaml ×1