patch applied (ghc): Fixes to datacon wrappers for indexed data types

Simon Peyton-Jones simonpj at microsoft.com
Wed Apr 25 06:15:08 EDT 2007


No I did not get all the tests working.  I just thought I should get the bits off my dying laptop, so all I did was confirm that I have not broken any mainline code (libraries etc).  Sorry!

I have still not gotten my head around this wrapper stuff, as I mentioned on the phone.  You might want to take a look and we can discuss.

Simon

| -----Original Message-----
| From: Manuel M T Chakravarty [mailto:chak at cse.unsw.edu.au]
| Sent: 25 April 2007 10:16
| To: Simon Peyton-Jones
| Cc: cvs-ghc at haskell.org
| Subject: Re: patch applied (ghc): Fixes to datacon wrappers for indexed data types
|
| Did you run the regression tests on this?  I already get an offence in
| "ghc-regress/indexed-types/should_compile/Simple1.hs" (corelint barfs on
| the wrapper for the associated data type).
|
| Manuel
|
| Simon Peyton Jones:
| > Sun Apr 22 14:35:03 PDT 2007  simonpj at microsoft.com
| >   * Fixes to datacon wrappers for indexed data types
| >
| >   nominolo at gmail.com pointed out (Trac #1204) that indexed data types
| >   aren't quite right. I investigated and found that the wrapper
| >   functions for indexed data types, generated in MkId, are really very
| >   confusing.  In particular, we'd like these combinations to work
| >       newtype + indexed data type
| >       GADT + indexted data type
| >   The wrapper situation gets a bit complicated!
| >
| >   I did a bit of refactoring, and improved matters, I think.  I am not
| >   certain that I have gotten it right yet, but I think it's better.
| >   I'm committing it now becuase it's been on my non-backed-up laptop for
| >   a month and I want to get it into the repo. I don't think I've broken
| >   anything, but I don't regard it as 'done'.
| >
| >
| >     M ./compiler/basicTypes/DataCon.lhs -28 +45
| >     M ./compiler/basicTypes/MkId.lhs -85 +122
| >     M ./compiler/main/PprTyThing.hs -11 +13
| >     M ./compiler/typecheck/TcPat.lhs -3 +3
| >     M ./compiler/typecheck/TcTyClsDecls.lhs -8 +8
| >     M ./compiler/typecheck/TcType.lhs -3 +3
| >     M ./compiler/types/TyCon.lhs -8 +10
| >     M ./compiler/types/Unify.lhs -4 +21
| >
| > _______________________________________________
| > Cvs-ghc mailing list
| > Cvs-ghc at haskell.org
| > http://www.haskell.org/mailman/listinfo/cvs-ghc
| > .
| >



More information about the Cvs-ghc mailing list