Ticket #301 (closed bug: fixed)
GADT constructor constraints ignored
| Reported by: | wolfram_kahl | Owned by: | simonpj |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8.1 |
| Component: | Compiler (Type checker) | Version: | 6.4 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | gadt/karl1, gadt/karl2 | Blocked By: | |
| Blocking: | Related Tickets: |
Description (last modified by simonmar) (diff)
Class constraints on GADT constructore appear to be ignored. I tried: data Expr :: * -> * where Const :: Show a => a -> Expr a Apply :: Fct a b -> Expr a -> Expr b and there is no way to define the expected constraint-less Show instance --- for details, see Expr0.lhs.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

