<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 17, 2015 at 7:54 AM, Peng Yu <span dir="ltr"><<a href="mailto:pengyu.ut@gmail.com" target="_blank">pengyu.ut@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> GHCi has such a command:<br>
>   :doc <function name><br>
><br>
> For example:<br>
>   Prelude> :doc head<br>
>   Prelude head :: [a] -> a<br>
><br>
>   Extract the first element of a list, which must be non-empty.<br>
><br>
>   From package base<br>
>   head :: [a] -> a<br>
<br>
Where is it? I don't see it.<br>
<br>
GHCi, version 7.10.1: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a>  :? for help<br>
Prelude> :doc head<br>
unknown command ':doc'<br>
use :? for help.<br>
Prelude><br></blockquote><div><br></div><div>I suspect the author's environment defines the doc command, as it's not built in. Links to two different ways (one that opened pages in a web browser, and the other that invoked the hoogle command) to do that have already been posted to the thread. </div></div></div></div>