How does Haskell deal with documentation?

前端 未结 3 1988
谎友^
谎友^ 2021-01-08 01:07

How do I get online documentation in Haskell?

Are there anything as elegant/handy as what Python does below?

>>> help([].count)
Help on bu         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-08 01:45

    You can use Hoogle to search for documentation by function name or its type signature (perhaps, approximate type signature). There's also a command-line offline version of this tool which you can get from hackage.

提交回复
热议问题