[Haskell] deriving with newtypes

Simon Peyton-Jones simonpj at microsoft.com
Fri Apr 2 17:55:20 EST 2004


Not for a while: 6.4.
Meanwhile, you'll need to build from source or grab a development
snapshot build

S

| -----Original Message-----
| From: haskell-bounces at haskell.org [mailto:haskell-bounces at haskell.org]
On Behalf Of Wolfgang
| Jeltsch
| Sent: 02 April 2004 17:53
| To: The Haskell Mailing List
| Subject: Re: [Haskell] deriving with newtypes
| 
| Am Freitag, 2. April 2004 18:49 schrieben Sie:
| > Your word is my command. 'Tis done.
| >
| > Simon
| 
| Thank you very much.  In which GHC release will this be available?
| 
| Wolfgang
| 
| > | -----Original Message-----
| > | From: haskell-bounces at haskell.org
[mailto:haskell-bounces at haskell.org]
| >
| > On Behalf Of Wolfgang
| >
| > | Jeltsch
| > | Sent: 21 March 2004 17:55
| > | To: The Haskell Mailing List
| > | Subject: [Haskell] deriving with newtypes
| > |
| > | Hello,
| > |
| > | I'm trying to use GHC's deriving mechanism for newtypes in the
| >
| > following way:
| > |     class C a b
| > |     instance C [a] Char
| > |     newtype T = T Char deriving C [a]
| > | Unfortunately, this isn't possible. Is there a reason for this?
Can I
| > | circumvent this restriction?
| > |
| > | Wolfgang
| > |
| > | _______________________________________________
| > | Haskell mailing list
| > | Haskell at haskell.org
| > | http://www.haskell.org/mailman/listinfo/haskell
| 
| _______________________________________________
| Haskell mailing list
| Haskell at haskell.org
| http://www.haskell.org/mailman/listinfo/haskell


More information about the Haskell mailing list