<div dir="ltr"><div>In the Haskell litrature desugaring of type clases to a data type is  mentioned.</div><div>For example:</div><div>class Foo a where</div><div>    quux :: a -> Int</div><div>    muux :: a -> Bool</div><div><span style="white-space:pre">    </span></div><div>Desugared to</div><div>data FooD a = FooD          -- class Foo a where</div><div>    { quuxD :: a -> Int     --    quux :: a -> Int</div><div>    , muuxD :: a -> Bool    --    muux :: a -> Bool</div><div>    }</div><div><br></div><div><span style="white-space:pre">    </span></div><div>Is there any way using core dumps to actuall view the desugring of classes, sub-classes, and instances, in my own code?</div><div>I have tried:</div><div>ghc -c -ddump-ds Foo.hs</div><div>But I cannot understand the output.</div><div><br></div><div>Thanks,</div><div>Pat</div></div>

<br>
<p><span lang="EN-GB"><font size="2">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. <a href="http://www.dit.ie/" target="_blank">www.dit.ie</a></font></span></p><p><font size="2">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. <a href="http://www.dit.ie/" target="_blank">www.dit.ie</a></font></p><p><a href="http://www.dit.ie/grangegorman" target="_blank"><font size="2">Tá ITBÁC ag aistriú go Gráinseach Ghormáin – DIT is on the move to Grangegorman</font></a></p>