Skip to content

Improve/fix -fcatch-bottoms documentation

Ömer Sinan Ağacan requested to merge osa1/ghc:fcatch_bottoms_doc into master

Old documentation suggests that -fcatch-bottoms only adds a default alternative to bottoming case expression, but that's not true. We use a very simplistic "is exhaustive" check and add default alternatives to any case expression that does not cover all constructors of the type. In case of GADTs this simple check assumes all constructors should be covered, even the ones ruled out by the type of the scrutinee.

Update the documentation to reflect this.

(Originally noticed in #17648 (closed))

[ci skip]

Merge request reports