diff options
author | simonpj@microsoft.com <unknown> | 2009-07-23 13:01:45 +0000 |
---|---|---|
committer | simonpj@microsoft.com <unknown> | 2009-07-23 13:01:45 +0000 |
commit | aa0c0de94e25aa64139688f8e4c4ba51ddca6f54 (patch) | |
tree | be374cbb776da2d28d599e7ba6c031c758775245 /compiler/cmm/CmmSpillReload.hs | |
parent | b752fe11fcff303a5ced0bbf67066941597b28af (diff) | |
download | haskell-aa0c0de94e25aa64139688f8e4c4ba51ddca6f54.tar.gz |
Fix Trac #3012: allow more free-wheeling in standalone deriving
In standalone deriving, we now do *not* check side conditions.
We simply generate the code and typecheck it. If there's a type
error, it's the programmer's problem.
This means that you can do 'deriving instance Show (T a)', where
T is a GADT, for example, provided of course that the boilerplate
code does in fact typecheck.
I put some work into getting a decent error message. In particular
if there's a type error in a method, GHC will show the entire code
for that method (since, after all, the user did not write it).
Most of the changes are to achieve that goal.
Still to come: changes in the documentation.
Diffstat (limited to 'compiler/cmm/CmmSpillReload.hs')
0 files changed, 0 insertions, 0 deletions