<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, May 16, 2015 at 6:30 PM, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, May 16, 2015 at 7:18 PM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="overflow:hidden">Many other languages have help pages in the command (see help() in<br>
python and R). Why haskell doesn't have such a feature?</div></blockquote></div><br>Because Haskell doesn't predate the web? :p</div></div></blockquote><div><br></div><div>So do Python. And S, for that matter.</div><div><br></div><div>I don't know about R, but it's a fundamentally harder problem in a Haskell environment than in a Python one. Python forces you to keep the sources around, which has the doc strings in them, and has places to put doc strings in the data describing it's internal objects. So the "help" function is just a tool for examining those. Python's package installation is also more amenable to such, which gives us pydoc instead of hoogle.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">You can build local documentation and access it from ghci with some hooks (see <a href="https://wiki.haskell.org/Ghci#Package_and_documentation_lookup" target="_blank">https://wiki.haskell.org/Ghci#Package_and_documentation_lookup</a> although it's a bit outdated),</div></div></blockquote><div><br></div><div>Maybe <a href="https://wiki.haskell.org/Hoogle#GHCi_Integration">https://wiki.haskell.org/Hoogle#GHCi_Integration</a> would be less outdated?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"> but Haskell is not a dynamic language and ghci is not trying to be its primary developer interface. And you can't exactly hyperlink on a terminal.</div></div></blockquote><div><br></div><div>In that case, you need a more powerful web browser. Or to (as the hoogle command does) install local copies of the documentation.</div><div> </div></div></div></div>