[Haskell-beginners] How to show the help page of a function

Francesco Ariis fa-ml at ariis.it
Wed May 26 23:27:06 UTC 2021


Hello Peng,

Il 26 maggio 2021 alle 18:22 Peng Yu ha scritto:
> I want to check the help page of a function in haskell. For example,
> to check the help page of "many", could anybody help me know to get to
> its help page? Thanks.

A quick way to do it is :doc inside ghci, like

    λ> :doc head
     /O(1)/. Extract the first element of a list, which must be non-empty.

If you prefer something in your web-browser, hoogle can help you

    https://hoogle.haskell.org/?hoogle=many&scope=set%3Astackage

Does this help?
—F



More information about the Beginners mailing list