Closed ctaggart closed 8 years ago
The input file looks like:
/// enum uint32
type CXErrorCode =
| CXError_Success = 0u
| CXError_Failure = 1u
| CXError_Crashed = 2u
| CXError_InvalidArguments = 3u
| CXError_ASTReadError = 4u
Fantomas is formatting it incorrectly like so:
/// enum uint32
type CXErrorCode =
| 0u
| 1u
| 2u
| 3u
| 4u
The from scratch is matching that:
/// enum uinst32
type CXErrorCode =
| 0u
| 1u
| 2u
| 3u
| 4u
printAstInfo "Enum.fs"
now supports prints everything about the enum type:Next up will be creating it from scratch.