Skip to content

[Discussion] Creating Generic Wrappers for Validated Values #6

@jackfoxy

Description

@jackfoxy

I'm very interested in this project, and probably have more feedback, but first I'm trying to get the "library" code building, and the LimitedValue type as printed does not build for me

type LimitedValue<'v, 'c, 't    when    'v :> Validator<'c, 't>
                                and     'v : (new: unit -> 'v)> = 
        LimitedValue of 't 
        with
            static member inline Create(x:'t) : Option<LimitedValue<'v, 'c, 't>> =
                x 
                |> (new 'v()).Validate 
                |>> LimitedValue

I'm not sure exactly what you have in mind here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions