I have a finit.fsx file to be load at fsi.exe startup like:
#r xxxx
type xx = xxx
module Util =
let cd path = xxxx
...
After start fsi.exe, it is loaded as
namespace FSI_0002
module Util = begin
val cd : string -> unit
...
end
The problem is how can I use module util? I cannot open Util or use cd directly.
To further puzzle me, if I put a namespace at the top line like namespace Test, In fsi.exe, it is loaded as
namespace FSI_0002.Test
val cd : string -> unit
...
Where is the Module Util? I then have to open Test;; then Util.cd.
Is there a way to define module in the F# startup script and auto open the module? thanks.