<div dir="ltr">The problem is that length is defined in GHC.List and simple re-exported by Data.List (and by Prelude).<div><br></div><div>You could try tying into a command-line installation of Hoogle. A quick search for &quot;length&quot; on the Hoogle website shows that it finds it in both Prelude and Data.List.</div>
<div><br></div><div>-Karl</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 8:27 PM, Jong-won Choi <span dir="ltr">&lt;<a href="mailto:oz.jongwon.choi@gmail.com" target="_blank">oz.jongwon.choi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am self-teaching Haskell and also try to fix a slightly broken Emacs<br>
mode for Haskell.<br>
<br>
I&#39;d like to browse Haskell documentation from Emacs - C-c C-d on a<br>
function name, say.<br>
<br>
Current Emacs Lisp Haskell mode implementation uses return value of<br>
&#39;:info&#39;, for example, GHC.List for length (the function name I want to<br>
browse).<br>
Unfortunately, this does not work because Glasgow Haskell&#39;s HTML doc<br>
uses module name Data.List(i.e. Data-List.html) instead of GHC.List.<br>
<br>
I&#39;d like to get &#39;Data.List&#39; from &#39;length&#39;. How can I do this?<br>
<br>
For example, if it is Common Lisp, this can be achieved by:<br>
(symbol-package &#39;length)<br>
<br>
One more thing. I think :info command is only for GHC. Is there any<br>
portable ways which will work on other implementations as well?<br>
<br>
Thanks!<br>
<br>
- Jong-won Choi<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>