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