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

Henk-Jan van Tuyl hjgtuyl at chello.nl
Sun May 17 08:24:42 UTC 2015


On Sun, 17 May 2015 01:18:50 +0200, Peng Yu <pengyu.ut at gmail.com> wrote:

> Many other languages have help pages in the command (see help() in
> python and R). Why haskell doesn't have such a feature?

GHCi has such a command:
   :doc <function name>

For example:
   Prelude> :doc head
   Prelude head :: [a] -> a

   Extract the first element of a list, which must be non-empty.

   From package base
   head :: [a] -> a

Regards,
Henk-Jan van Tuyl


-- 
Folding at home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--


More information about the Beginners mailing list