Extended default rules now specialize Foldable, Traversable to [] (#10971)
authorDavid Kraeutmann <kane@kane.cx>
Tue, 20 Oct 2015 20:39:51 +0000 (22:39 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Tue, 20 Oct 2015 20:40:08 +0000 (22:40 +0200)
commitbb7e93c9c78bdf746e34cf6715eeffa6dd5682de
treeabe1ea8d29ec36e241877cc6482347cec3505baf
parent1750ebc2e40bab85246717326d3d5c60f132e652
Extended default rules now specialize Foldable, Traversable to [] (#10971)

Default rules deliberately accept any kind.

Reviewed By: simonpj, thomie, goldfire

Differential Revision: https://phabricator.haskell.org/D1329
13 files changed:
compiler/typecheck/TcEnv.hs
compiler/typecheck/TcSimplify.hs
compiler/typecheck/TcValidity.hs
docs/users_guide/ghci.rst
testsuite/tests/typecheck/should_compile/T10971a.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/T10971a.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_fail/T10971b.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T10971b.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T10971c.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T10971d.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T10971d.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T