Derive <$
authorDavid Feuer <david.feuer@gmail.com>
Tue, 7 Feb 2017 05:16:55 +0000 (00:16 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Tue, 7 Feb 2017 05:16:56 +0000 (00:16 -0500)
commit2219c8cd612ec7920a3bd1661b3c663575737267
tree43c944b3fd09c9719a27f871abba1a6ece01e16b
parenta28a55211d6fb8d3182b0a9e47656ff9ca8a3766
Derive <$

Using the default definition of `<$` for derived `Functor`
instance is very bad for recursive data types. Derive
the definition instead.

Fixes #13218

Reviewers: austin, bgamari, RyanGlScott

Reviewed By: RyanGlScott

Subscribers: RyanGlScott, thomie

Differential Revision: https://phabricator.haskell.org/D3072
compiler/prelude/PrelNames.hs
compiler/typecheck/TcGenFunctor.hs
docs/users_guide/8.2.1-notes.rst
testsuite/tests/generics/GenDerivOutput.stderr
testsuite/tests/generics/T10604/T10604_deriving.stderr
testsuite/tests/perf/should_run/T13218.hs [new file with mode: 0644]
testsuite/tests/perf/should_run/all.T