Re: baffling manual sections
2009/05/20 Simon Peyton-Jones simo...@microsoft.com: | I'm a little puzzled by these seeming duplicate pages in the | manual: | | http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html | | http://www.haskell.org/ghc/dist/current/docs/users_guide/data-type-extensions.html The former is garbage. It's part of an *earlier* iteration of the HEAD user manual, left around by mistake. | They give slightly different section numbers to similar stuff. | The former page also has a curious discussion of standalone | deriving with a `for` keyword: | | http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html#stand-alone-deriving Same problem. Standalone deriving is described here... I found it linked from the wiki page on stand-alone deriving (which also happens to have the offending sytnax). -- Jason Dusek |...the wiki page on stand-alone deriving...| http://haskell.org/haskellwiki/?title=GHC/Stand-alone_deriving_declarationsaction=history ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: baffling manual sections
Yes, it is fixed (the link is to the history). -- Jason Dusek ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: baffling manual sections
Oh, I just realized I had not changed the links, only the examples. They are all fixed now. -- Jason Dusek ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: baffling manual sections
Aha. Could you find a moment to fix the wiki page? It's a wiki. thanks S | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-users- | boun...@haskell.org] On Behalf Of Jason Dusek | Sent: 20 May 2009 14:44 | To: Simon Peyton-Jones | Cc: glasgow-haskell-users@haskell.org | Subject: Re: baffling manual sections | | 2009/05/20 Simon Peyton-Jones simo...@microsoft.com: | | I'm a little puzzled by these seeming duplicate pages in the | | manual: | | | | http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html | | | | http://www.haskell.org/ghc/dist/current/docs/users_guide/data-type- | extensions.html | | The former is garbage. It's part of an *earlier* iteration of | the HEAD user manual, left around by mistake. | | | They give slightly different section numbers to similar stuff. | | The former page also has a curious discussion of standalone | | deriving with a `for` keyword: | | | | http://www.haskell.org/ghc/dist/current/docs/users_guide/type- | extensions.html#stand-alone-deriving | | Same problem. Standalone deriving is described here... | | I found it linked from the wiki page on stand-alone deriving | (which also happens to have the offending sytnax). | | -- | Jason Dusek | | | |...the wiki page on stand-alone deriving...| | http://haskell.org/haskellwiki/?title=GHC/Stand- | alone_deriving_declarationsaction=history | ___ | 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
baffling manual sections
I'm a little puzzled by these seeming duplicate pages in the manual: http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html http://www.haskell.org/ghc/dist/current/docs/users_guide/data-type-extensions.html They give slightly different section numbers to similar stuff. The former page also has a curious discussion of standalone deriving with a `for` keyword: http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html#stand-alone-deriving -- Jason Dusek ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: baffling manual sections
On Tue, May 19, 2009 at 16:07, Jason Dusek jason.du...@gmail.com wrote: The former page also has a curious discussion of standalone deriving with a `for` keyword: http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html#stand-alone-deriving Without this extension, adding an Eq implementation to a data type for which you do not have source requires an explicit class declaration, even if there is no reason the original data type author couldn't have written deriving Eq. Standalone deriving allows you to get the convenience of deriving classes everywhere, not just on datatypes for which you can obtain, and use, the source. Denis ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: baffling manual sections
On Tue, May 19, 2009 at 6:22 PM, Denis Bueno dbu...@gmail.com wrote: On Tue, May 19, 2009 at 16:07, Jason Dusek jason.du...@gmail.com wrote: The former page also has a curious discussion of standalone deriving with a `for` keyword: http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html#stand-alone-deriving Without this extension, adding an Eq implementation to a data type for which you do not have source requires an explicit class declaration, even if there is no reason the original data type author couldn't have written deriving Eq. Standalone deriving allows you to get the convenience of deriving classes everywhere, not just on datatypes for which you can obtain, and use, the source. Denis ___ I think what he's referring to is that StandaloneDeriving actually has the syntax deriving instance Eq Foo not deriving Eq for foo Alex ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users