Ticket #3965 (closed bug: fixed)
'deriving Data' compilation regression 6.10.1 -> 6.12.1
| Reported by: | ronwalf | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 6.12.3 |
| Component: | Compiler | Version: | 6.12.1 |
| Keywords: | Cc: | ||
| Operating System: | MacOS X | Architecture: | x86 |
| Type of failure: | GHC rejects valid program | Difficulty: | |
| Test Case: | deriving/should_compile/T3965 | Blocked By: | |
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
Compiling the attached file in GHC 6.12.1 gives the following error, when GHC 6.10.1 compiles it fine:
[1 of 1] Compiling Main ( baddata.hs, baddata.o )
baddata.hs:33:14:
No instances for (Data Const, Data Var)
arising from the 'deriving' clause of a data type declaration
at baddata.hs:33:14-17
Possible fix:
add an instance declaration for (Data Const, Data Var)
or use a standalone 'deriving instance' declaration instead,
so you can specify the instance context yourself
When deriving the instance for (Data (Domain e g))
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

