Is it possible to split an F# module across files?
According to the book I have it is, but the book is probably outdated (Foundations of F#)
On one of my projects the goal was to place file operations Cp and Rm to separate modules, but do not require user to open two namespaces for both tasks.
open Xake.FileTasks
...
do! Cp "*/*.exe" "deploy/*.exe"
do! Rm "*/*.exe"
Here're my modules:
namespace Xake.FileTasks
[]
module RmImpl =
let Rm filemask target =
...
and the other one:
namespace Xake.FileTasks
[]
module CpImpl =
let Cp filemask target =
...