Ticket #3012 (closed feature request: fixed)
A little deriving for GADTs
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | Compiler | Version: | 6.10.1 |
| Keywords: | Cc: | lennart@…, daniels@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
For GADTs that are really enumerations, I think deriving Show should work. E.g.
data T a where
Foo :: T Int
Bar :: T Bool
deriving (Show)
There's no(?) intricate behaviour of the derived functions, so why not?
-- Lennart
Change History
Note: See
TracTickets for help on using
tickets.
