diff options
author | David Feuer <david.feuer@gmail.com> | 2017-12-01 17:00:24 -0500 |
---|---|---|
committer | David Feuer <David.Feuer@gmail.com> | 2017-12-01 17:00:25 -0500 |
commit | bc761ad9c65c7aa62d38db39c59a6c0ae59c8ab8 (patch) | |
tree | 434ced12dc70566760e61dbf6df5edfedf0fbb03 /testsuite/tests/overloadedlists | |
parent | 12efb230de40f24e4828734dd46627ebe24416b4 (diff) | |
download | haskell-bc761ad9c65c7aa62d38db39c59a6c0ae59c8ab8.tar.gz |
Cache TypeRep kinds aggressively
Cache `TypeRep k` in each `TrApp` or `TrTyCon` constructor of
`TypeRep (a :: k)`. This makes `typeRepKind` cheap.
With this change, we won't need any special effort to deserialize
typereps efficiently. The downside, of course, is that we make
`TypeRep`s slightly larger.
Reviewers: austin, hvr, bgamari, simonpj
Reviewed By: bgamari, simonpj
Subscribers: carter, simonpj, rwbarton, thomie
GHC Trac Issues: #14254
Differential Revision: https://phabricator.haskell.org/D4085
Diffstat (limited to 'testsuite/tests/overloadedlists')
-rw-r--r-- | testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr index 1c5ab2ee61..5ece21fca5 100644 --- a/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr +++ b/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr @@ -8,7 +8,7 @@ overloadedlistsfail01.hs:5:8: error: instance Show Integer -- Defined in ‘GHC.Show’ instance Show a => Show (Maybe a) -- Defined in ‘GHC.Show’ ...plus 22 others - ...plus 7 instances involving out-of-scope types + ...plus 12 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the expression: print [1] In an equation for ‘main’: main = print [1] |