Skip to content

Avoid partiality in `Language.Haskell.Syntax.Expr`, `GHC.Hs.Expr`, `GHC.Rename.Expr`, etc.

Matthew Farkas-Dyck requested to merge strake/ghc:total-Expr into master

In particular, use NonEmpty where appropriate:

  • the argument of FieldLabelString
  • the argument of HsMultiIf
  • grhssGRHSs

See also #22185 (closed).

Decreases compile-time allocation by about 0.1% (min -0.8%, max +0.3%).

Edited by Matthew Farkas-Dyck

Merge request reports

Loading