Type F # output (compiler output)

Is there a way to get structured output from type inference output by the F # compiler?

(I'm trying to create a small IDE).

+3
source share
1 answer

Assuming you have a file test.fs, you can use the following command to create an F # signature file test.fsithat contains type information for all top-level definitions:

Fsc.exe --sig:test.fsi test.fs

To get information about local variables, you need to use the F # compiler as a service. There is a simple command line example that demonstrates how to call the API, and you can also learn the F # binding for MonoDevelop .

+8
source

All Articles