.net - Split F# modules across multiple files -
Is it possible to separate the F # module in files?
According to the book I have this, but the book is probably old (the foundation of F #)
Not apparently:
C: \ Temporary \ Tim & gt; Type 1.fs 2.fs 1.fs # Light module module Let's say hello1 = printfun "hello," 2.f # Lite module module say hello2 = printfun "world!" C: \ temp \ tim> Fsc 1.fs 2.f Microsoft F # compiler, (c) Microsoft Corporation, All Rights Reserved F # version 1.9.6.2, compilation 2.F (2.11) for .NET Framework Version v2.0.50727: Error FS0191: The file or modules module has already been implemented. Update: The error has changed to F # 4.0, now it is:
Error FS0248: Two modules named 'module' in two parts of this Are
Comments
Post a Comment