checkLeftHandSide :: CallTrace, e.g. CheckLHS or CheckPattern.
-> RangeRange of the entire left hand side, for error reporting.
-> Maybe QNameThe name of the definition we are checking.
-> [NamedArg Pattern]The patterns.
-> TypeThe expected type
a = Γ → b.-> Maybe SubstitutionModule parameter substitution from with-abstraction.
-> [ProblemEq]Patterns that have been stripped away by with-desugaring. ^ These should not contain any proper matches.
-> (LHSResult -> TCM a)Continuation.
-> TCM a
Check a LHS. Main function.
checkLeftHandSide a ps a ret checks that user patterns ps eliminate
the type a of the defined function, and calls continuation ret
if successful.