<div dir="ltr">From source you'd be looking at using haskell-src-exts. Alternately:<div><br></div><div>- echo :browse | ghci foo.hs</div><div><br></div><div>- compile it, dump the .hi file (ghc --show-iface foo.hi) likely with postprocessing to only show the types</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 3:30 AM, Andrew Butterfield <span dir="ltr"><<a href="mailto:Andrew.Butterfield@scss.tcd.ie" target="_blank">Andrew.Butterfield@scss.tcd.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Haskellers,<br>
 any quick and easy way to extract all the type declarations from a Haskell source file?<br>
(for easy reference)<br>
<br>
Regards,<br>
<br>
Andrew Butterfield<br>
School of Computer Science & Statistics<br>
Trinity College<br>
Dublin 2, Ireland<br>
<br>
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div>