Here's a sample

fsi:

1
2
3
4
5
namespace Blah
type Foo = class
    new : int -> Foo
    member Baz : unit -> int
end

fs:

1
2
3
namespace Blah
type Foo(bar: int) = 
    member this.Baz() = bar 

Note that an effective way to discover the syntax for signatures is to run e.g.

fsc --sig:Out.fsi SomeFile.fs

and then inspect Out.fsi.

By on 9/7/2009 2:41 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper