Skip to content
Snippets Groups Projects
Commit 52b6539b authored by M Farkas-Dyck's avatar M Farkas-Dyck Committed by Matthew Farkas-Dyck
Browse files

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

In particular, use `NonEmpty` where appropriate:
- the argument of `FieldLabelString`
- the argument of `HsMultiIf`
- `grhssGRHSs`

Decreases overall compile-time allocation by about 0.1% in the benchmark suite (min -0.8%, max +0.3%).

Metric Decrease:
    T3294
parent c4a7680a
No related branches found
No related tags found
No related merge requests found
Showing
with 127 additions and 113 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment