[Haskell-beginners] How to manage typeclass hierarchies and instances?
PATRICK BROWNE
patrick.browne at dit.ie
Sun Feb 22 07:53:12 UTC 2015
On 22 February 2015 at 00:04, Brandon Allbery <allbery.b at gmail.com> wrote:
> You can't, at present. (Note: Typeclasses are not OOP classes; `class (Num
> a, Group a) => Additive a` does not declare superclasses, but
> prerequisites.)
>
In logic we would say (Num a AND Group a) is a necessary condition for (
Additive a) => (Num a AND Group a) to hold.
--
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/20150222/f68d25fb/attachment.html>
More information about the Beginners
mailing list