Skip to content

Validation.ofResult doesn't require Semigroup #496

Open
@gusty

Description

@gusty

When converting from Result<'T, 'TError> to Validation<'TError, 'T> we need to either:

  • Make sure 'TError is a Semigroup (this simply means that the type is additive)
  • Transform to a Semigroup

I'm not sure what's the best way to go, maybe the best backward compatibility way is to add a static constraint to .ofResult

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions