Skip to content

Mark more partial functions as x-partial

Motivation

In 9.8.1, x-partial was added as a custom warning to head and tail. There are more partial functions in base, though, including last, init, foldl1, and so on.

Proposal

Any function that is partial in base should give out an x-partial warning. GHC.List is a good place to start on this.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information