
Is there a topic for DeriveAnyClass extension in user guide? It is mentioned several times in different places, also I see link to it in from cabal haddocs [0] into its page inside "other type extensions" [1], but it leads nowhere. Thank you. [0]: https://www.haskell.org/cabal/release/cabal-latest/doc/API/Cabal/Language-Ha... [1]: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/other-type-e...

Did you mean this link for the Users Guide? https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/deriving.htm... DeriveAny class lets you write
data Foo = ... deriving (Bar)
instead of:
data Foo = ... instance Bar Foo
(i.e. if it's possible to make it an instance without having to
provide explicit method implementations); as the Users Guide hints
it's primarily useful in cases where default definitions are provided
for you, typically using the DefaultSignatures definition with
GHC.Generics.
On 6 November 2015 at 20:01, Kostiantyn Rybnikov
Is there a topic for DeriveAnyClass extension in user guide? It is mentioned several times in different places, also I see link to it in from cabal haddocs [0] into its page inside "other type extensions" [1], but it leads nowhere.
Thank you.
[0]: https://www.haskell.org/cabal/release/cabal-latest/doc/API/Cabal/Language-Ha... [1]: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/other-type-e...
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

Ah, thank you, I've seen it before but somehow couldn't find now. On Fri, Nov 6, 2015 at 11:08 AM, Ivan Lazar Miljenovic < ivan.miljenovic@gmail.com> wrote:
Did you mean this link for the Users Guide?
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/deriving.htm...
DeriveAny class lets you write
data Foo = ... deriving (Bar)
instead of:
data Foo = ... instance Bar Foo
(i.e. if it's possible to make it an instance without having to provide explicit method implementations); as the Users Guide hints it's primarily useful in cases where default definitions are provided for you, typically using the DefaultSignatures definition with GHC.Generics.
On 6 November 2015 at 20:01, Kostiantyn Rybnikov
wrote: Is there a topic for DeriveAnyClass extension in user guide? It is mentioned several times in different places, also I see link to it in from cabal haddocs [0] into its page inside "other type extensions" [1], but it leads nowhere.
Thank you.
[0]:
https://www.haskell.org/cabal/release/cabal-latest/doc/API/Cabal/Language-Ha...
[1]:
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/other-type-e...
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com
participants (2)
-
Ivan Lazar Miljenovic
-
Kostiantyn Rybnikov