Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Viewing desugared classes and instances (PATRICK BROWNE) ---------------------------------------------------------------------- Message: 1 Date: Wed, 21 Feb 2018 17:15:10 +0000 From: PATRICK BROWNE <patrick.bro...@dit.ie> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: [Haskell-beginners] Viewing desugared classes and instances Message-ID: <cagflrkcj2eoe0inty8vtshukk8ghphhjxdpac92b8-rtkqi...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" In the Haskell litrature desugaring of type clases to a data type is mentioned. For example: class Foo a where quux :: a -> Int muux :: a -> Bool Desugared to data FooD a = FooD -- class Foo a where { quuxD :: a -> Int -- quux :: a -> Int , muuxD :: a -> Bool -- muux :: a -> Bool } Is there any way using core dumps to actuall view the desugring of classes, sub-classes, and instances, in my own code? I have tried: ghc -c -ddump-ds Foo.hs But I cannot understand the output. Thanks, Pat -- This email originated from DIT. If you received this email in error, please delete it from your system. Please note that if you are not the named addressee, disclosing, copying, distributing or taking any action based on the contents of this email or attachments is prohibited. www.dit.ie Is ó ITBÁC a tháinig an ríomhphost seo. Má fuair tú an ríomhphost seo trí earráid, scrios de do chóras é le do thoil. Tabhair ar aird, mura tú an seolaí ainmnithe, go bhfuil dianchosc ar aon nochtadh, aon chóipeáil, aon dáileadh nó ar aon ghníomh a dhéanfar bunaithe ar an ábhar atá sa ríomhphost nó sna hiatáin seo. www.dit.ie Tá ITBÁC ag aistriú go Gráinseach Ghormáin – DIT is on the move to Grangegorman <http://www.dit.ie/grangegorman> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180221/0606dd69/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 116, Issue 2 *****************************************