RE: deprecate a constructor?

OK, I've fixed this one, in the HEAD at least. You can now deprecate data constructors as well as type constructors. Not in the 6.4 branch though, because doing so could conceivably make some programs fail. Simon | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users- | bounces@haskell.org] On Behalf Of Simon Peyton-Jones | Sent: 15 April 2005 14:58 | To: Johannes Waldmann; glasgow-haskell-users@haskell.org | Subject: RE: deprecate a constructor? | | Apparently not at the moment but it should be. | | As in a 'hiding' list, deprecating "T" would deprecate the *type* T and | the *data constructor* T. There'd be no way to deprecate one without | the other, except by giving them different names. (That's a bit of a | shortcoming in hiding lists already, so matters are no worse than | before.) | | I'll look into this sometime I'm on an aeroplane... | | Simon | | | -----Original Message----- | | From: glasgow-haskell-users-bounces@haskell.org | [mailto:glasgow-haskell-users- | | bounces@haskell.org] On Behalf Of Johannes Waldmann | | Sent: 14 April 2005 17:27 | | To: glasgow-haskell-users@haskell.org | | Subject: deprecate a constructor? | | | | is it possible to {-# DEPRECATE #-} a single constructor | | (of a data declaration that is, as a whole, not deprecated)? | | -- | | -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- | | ---- http://www.imn.htwk-leipzig.de/~waldmann/ ------- | | | | _______________________________________________ | | Glasgow-haskell-users mailing list | | Glasgow-haskell-users@haskell.org | | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (1)
-
Simon Peyton-Jones