title: F#, namespaces, modules, fs and fsx
body: <p>I'm aware of <a href="https://stackoverflow.com/questions/1155450/modules-v-namespaces-in-f">other</a> <a href="https://stackoverflow.com/questions/172888/f-defining-and-using-a-namespace-in-the-same-project">questions</a> about modules and namespaces in F#, but they're not helping me right now.</p>
  
  <p>I've got a project with </p>
  
  <p><strong>Utilities.fs</strong></p>
  
  <pre><code>namespace Company.Project.Namespace
  module Utilities = 
       //stuff here
  </code></pre>
  
  <p><strong>Functions.fs</strong></p>
  
  <pre><code>namespace Company.Project.Namespace
  open Utilities
  
  module Functions = 
       //stuff here
  </code></pre>
  
  <p>And I'm trying to test them in an fsx:</p>
  
  <pre><code>#load "Utilities.fs"
  #load "Functions.fs"
  </code></pre>
  
  <p>which gives me <code>error FS0039: The namespace or module 'Utilities' is not defined</code> when I try to send it to FSI with <code>Alt-Enter</code>.</p>
  
  <p>I've tried adding same namespace at the top of the script file, but it doesn't like that.</p>
  
  <p>What's weird is that the background compiler doesn't shout at me.</p>
  
  <p>This seems to work, but is it the right approch?</p>
  
  <pre><code>#load "Utilities.fs"
  open Company.Project.Namespace
  #load "Functions.fs"
  </code></pre>
  
  <p>Is there a 'reference' FSharp project somewhere, which contains examples of how to integrate all this stuff: namespaces, modules, classes, script files, tests etc.?</p>