<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 26, 2015 at 8:44 AM, David McBride <span dir="ltr"><<a href="mailto:toad3k@gmail.com" target="_blank">toad3k@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>There is a hoogle command: <a href="https://hackage.haskell.org/package/hoogle" target="_blank">https://hackage.haskell.org/package/hoogle</a>.<br><br>I don't use it, but I imagine you would have to set documention: True in cabal.config, so you get documentation for any packages you have, and then either use your browser, or put an alias in your .ghci to query it in your repl, or just use the executable.</div></div></blockquote><div><br></div><div>The appropriate entries for .ghci are:</div><div><br></div><div>:def hoogle \x -> return $ ":!hoogle \"" ++ x ++ "\""</div><div>:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""</div><div><br></div><div>That's actually close enough. However, the python & clojure commands use the current search path, not a database build from the online docs. I suspect this means I want a cabal command. <br></div></div></div></div>