title: Can you list the contents of a namespace or module in F#
body: <p>Similar to <a href="https://stackoverflow.com/questions/2747294/how-to-list-the-functions-of-a-namespace">this question about clojure</a>, is it possible to list the contents of a namespace or module in F#? When I open a namespace for a loaded DLL I'm not receiving an error that the namespace doesn't exist, but then when I try to use the documented functions I'm seeing errors that the namespace doesn't exist.</p>
  
  <p>I'm looking for a programatic way of listing values and methods and not relying on the IDE. For example if I loaded up the F# repl I'm looking for something similar to:</p>
  
  <pre><code>&gt; #r "mylib.DLL"
  &gt; open MyLib.Math
  &gt; list-namespace-content MyLib.Math;;
     val it : string = """
        MyLib.Math.Add : int -&gt; int -&gt; int
        MyLib.Math.TryDivide : int -&gt; int -&gt; int option
        MyLib.Math.Pi : float
     """
  </code></pre>