 <p>The obvious solution, as Fyodor Soikin points out, is to simply make <code>Profile</code> a module.</p> <pre><code>module Profile = let someUserName = "some_user_name" let somePassword = "some_password" </code></pre> <p>Then you can just:</p> <pre><code>open Profile let credentials = { User = User someUserName; Password = Password somePassword } </code></pre> <p>Incidentally, while it may not be possible to open static classes in F# at the moment, this looks set to change in future versions - this feature has been "approved in principle". See the <a href="https://fslang.uservoice.com/forums/245727-f-language/suggestions/6958404-allow-opening-of-static-classes-matching-the-c-d">user voice item</a> for more.</p>