Make sure GHC.List.last is memory-efficient
by eta-expanding its definition so that GHC optmizes the foldl here. Also make sure that other uses of last go via foldl as well, to allow list fusion (tested in T9339). Fixes #10260.
Please register or sign in to comment