Minor refactor of CUSK handling
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 7 Feb 2019 09:51:36 +0000 (09:51 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 8 Feb 2019 16:00:26 +0000 (11:00 -0500)
commit9bb23d5f8bd7a135670864dfa09dd39a60e94d28
tree9c090ff340e0e46ee0a9840b9c011bc0a9f6a063
parentcefb780ee7ae3c3be873324423358eafd4ba5a17
Minor refactor of CUSK handling

Previously, in getFamDeclInitialKind, we were figuring
out whether the enclosing class decl had a CUSK very
indirectly, via tcTyConIsPoly.  This patch just makes
the computation much more direct and easy to grok.

No change in behaviour.
compiler/hsSyn/HsDecls.hs
compiler/typecheck/TcTyClsDecls.hs