Avoid quadratic complexity in typeKind
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 26 Mar 2018 14:54:53 +0000 (15:54 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 27 Mar 2018 08:29:13 +0000 (09:29 +0100)
commit1fce2c3a83f0356146f24674b79b04f66c231e9d
treed79ba31aeb2302e603c3073565778f3f3d3a21bb
parentf13a0fc0bd33c513c0fadd1da58823d5fabfc5a7
Avoid quadratic complexity in typeKind

I took 10 minute to fix this potential performance hole
(Trac #14263)

There are no actual bug reports against it, so no regression
test.
compiler/types/Type.hs