StgLint: Give up on trying to compare types
StgLint: Give up on trying to compare types

We used to try a crude comparison of the type themselves, but this is
essentially impossible in STG as we have discarded. both casts and type
applications, so types might look different but be the same.  Now we
simply compare their runtime representations.

See #14120.

Reviewers: austin

Subscribers: rwbarton, thomie

GHC Trac Issues: #14120

Differential Revision: https://phabricator.haskell.org/D3879

shlevy/ghc,shlevy/ghc,sdiehl/ghc,ezyang/ghc,sdiehl/ghc,ezyang/ghc,ezyang/ghc,shlevy/ghc,shlevy/ghc,sdiehl/ghc,ezyang/ghc,shlevy/ghc,ezyang/ghc,sdiehl/ghc,ezyang/ghc,shlevy/ghc,sdiehl/ghc,shlevy/ghc,ezyang/ghc,sdiehl/ghc,sdiehl/ghc