I am writing a F# program which parses a string into a AST type which is a discriminated union.
When I use fsi (on Mono + Mac OS X) to run my code, the
fsi
Have you tried printfn "%A" ast? The %A specifier takes into consideration the StructuredFormatDisplayAttribute[MSDN], if present.
printfn "%A" ast
%A