How to show the help page of a function

Hi, 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. -- Regards, Peng

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

$ ghci
GHCi, version 8.10.4: https://www.haskell.org/ghc/ :? for help
Prelude> :doc many
<interactive>:1:1: error: Not in scope: ‘many’
Any way to automatically determine the module to load and load it
automatically in the command line?
On 5/26/21, Francesco Ariis
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
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-- Regards, Peng

Il 26 maggio 2021 alle 18:53 Peng Yu ha scritto:
$ ghci GHCi, version 8.10.4: https://www.haskell.org/ghc/ :? for help Prelude> :doc many
<interactive>:1:1: error: Not in scope: ‘many’
Any way to automatically determine the module to load and load it automatically in the command line?
You might do this by installing Hoogle locally [1] [1] https://github.com/ndmitchell/hoogle/blob/master/docs/Install.md
participants (2)
-
Francesco Ariis
-
Peng Yu