#15528 closed task (invalid)

Match is missing a Data instance

Reported by: mpickering Owned by:
Priority: normal Milestone: 8.6.1
Component: Compiler Version: 8.4.3
Keywords: newcomer Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

If I try to use showAstData on a Match then GHC complains that there is no Data instance.

No instance for (Data (Expr.Match p (Expr.LHsExpr p)))

It seems that all the constituent parts of Match have a Data instance so Match should as well.

Change History (1)

comment:1 Changed 14 months ago by mpickering

Resolution: invalid
Status: newclosed

There is actually instances in HsInstances but only if p is instantiated to something specific.

Note: See TracTickets for help on using tickets.