Linear Types Nested Deconstruction Configuration Ambiguity in GHC
The Linear Types extension guarantees that values annotated with the ‘L’ arrow are used exactly once, but when a function performs pattern matching on a nested linear data structure whose fields themselves are linear, the compiler must decide whether each inner field inherits the linearity constraint from the outer match. In the presence of higher‑rank polym