Error codes · Types

PW0603

constructor_arity

The program must hold to this: a constructor pattern must bind exactly the fields its constructor declares.

Reading the diagnostic

pw check prints the code in brackets, [PW0603], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.