Replace a few uses of snocView with last/lastMaybe.
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>
Mon, 21 Jan 2019 16:55:22 +0000 (17:55 +0100)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Sat, 9 Feb 2019 17:22:13 +0000 (12:22 -0500)
commit9170daa859ca5845b95acc88d10c127fb55d66fa
treeacf3aad39627f0a883e7803ba24cdbf1860659e9
parentfb031b9b046e48ffe0d2864ec76bee3bc8ff5625
Replace a few uses of snocView with last/lastMaybe.

These never used the first part of the result from snocView.
Hence replacing them with last[Maybe] is both clearer and
gives better performance.
compiler/typecheck/TcDerivUtils.hs
compiler/utils/Outputable.hs
compiler/utils/Util.hs