#5792: PolyKinds and recompilation causes internal error
---------------------------------------------+------------------------------
Reporter: reinerp | Owner: simonpj
Type: bug | Status: closed
Priority: high | Milestone: 7.4.2
Component: Compiler (Type checker) | Version: 7.4.1-rc1
Resolution: fixed | Keywords: PolyKinds
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Compile-time crash | Difficulty: Unknown
Testcase: typecheck/should_compile/T5792 | Blockedby:
Blocking: | Related:
---------------------------------------------+------------------------------
Changes (by simonpj):
* status: new => closed
* testcase: => typecheck/should_compile/T5792
* resolution: => fixed
Comment:
And I fixed the HEAD thus:
{{{
commit f92591defcb5c4803c301558d51e3f8c9c92a985
Author: Simon Peyton Jones <[email protected]>
Date: Mon Feb 6 08:38:59 2012 +0000
Refactor HsDecls again, to put family instances in InstDecl
This continues the clean up of the front end. Since they
were first invented, type and data family *instance* decls
have been in the TyClDecl data type, even though they always
treated separately.
This patch takes a step in the right direction
* The InstDecl type now includes both class instances and
type/data family instances
* The hs_tyclds field of HsGroup now never has any family
instance declarations in it
However a family instance is still a TyClDecl. It should really
be a separate type, but that's the next step.
All this was provoked by fixing Trac #5792 in the HEAD.
(I did a less invasive fix on the branch.)
compiler/deSugar/DsMeta.hs | 16 ++++++---
compiler/hsSyn/Convert.lhs | 20 ++++++-----
compiler/hsSyn/HsDecls.lhs | 61
+++++++++++++++++++++++------------
compiler/hsSyn/HsUtils.lhs | 24 ++++++++------
compiler/main/HscStats.lhs | 13 ++++---
compiler/parser/Parser.y.pp | 33 +++++++++++--------
compiler/rename/RnNames.lhs | 29 ++++++++--------
compiler/rename/RnSource.lhs | 23 +++++++++----
compiler/typecheck/TcDeriv.lhs | 2 +-
compiler/typecheck/TcInstDcls.lhs | 35 ++++++++++----------
compiler/typecheck/TcTyClsDecls.lhs | 11 ++----
utils/ghctags/Main.hs | 2 +-
12 files changed, 156 insertions(+), 113 deletions(-)
}}}
Plus a regression test. Done!
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5792#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs