As Brian and Scott pointed out, you need to enclose the file in a namespace declaration or in a module. Just adding namespace SomeNamespacemay not work if you have a top-level binding letin the file (as it should be in some module). The following is not valid:
namespace SomeNamespace
let foo a b = a + b
, namespace module , module ( , ):
namespace SomeNamespace
module FooFunctions =
let foo a b = a + b
, , , ( F # PascalCase , ):
module Main
let foo a b = a + b