Skip to content

getCandidateInSeat is partial (uses Array.! with unenforced precondition) #243

Description

@dnadales

Problem

WFA.hs L383: uses Array.! with a documented but unenforced precondition.
Call-site asserts are compiled out with -O.

Proposed fix

Return Maybe or Either so callers can't forget the bounds check.

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions