Elm函数可以有docstring吗?

Elm函数可以有docstring吗?,elm,Elm,Python有它们,我发现它们非常有用: def awesome_fn(x, y): """" Calculates some awesome function of x and y. """" . . . 然后在iPython REPL中,您可以使用 In [1]: awesome_fn? Signature: awesome_fn(x, y) Docstring: Calculates some awesome function of x a

Python有它们,我发现它们非常有用:

def awesome_fn(x, y):
    """"
    Calculates some awesome function of x and y.
    """"
    .
    .
    .
然后在iPython REPL中,您可以使用

In [1]: awesome_fn?
Signature: awesome_fn(x, y)
Docstring: Calculates some awesome function of x and y.
File:      ...
Type:      function

可以使用以下内容指定模块的文档:

对于一种方法:

{-| Convert a list of characters into a String. Can be useful if you
want to create a string primarly by consing, perhaps for decoding
something.

    fromList ['e','l','m'] == "elm"
-}
fromList : List Char -> String
fromList = ...
但到目前为止,无法从
repl
查看这些文档。甚至与此有关

另一方面,还有一个库,它允许您将文档提示集成到编辑器中(并且已经集成到),甚至可以在命令行中运行它,如下所示:

elm-oracle FILE query
elm-oracle FILE query