Files
WoofWare.Myriad/README.md
2023-05-06 15:48:36 +01:00

620 B

fsharp-arguments

Some helpers in Myriad which might be useful for someone writing an argument parser.

RemoveOptions

Takes a record like this:

type Foo =
    {
        A : int option
        B : string
        C : float list
    }

and stamps out a record like this:

[<RequireQualifiedAccess>]
module Foo =
    type Short =
        {
            A : int
            B : string
            C : float list
        }

(This is a proof of concept. It would be better to somehow disambiguate the module name.)