this builds. not sure if the instances are as intended{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}module SetClass wheredata TimeFacts t = Bef (t, t, TimeFacts t) | Newclass SetClass t whereclass SetClass t => Time l t whereclass Time l t => TimeE l t whereclass Time l t => TimeTO l t whereinstance SetClass (TimeFacts t) where -- OKinstance (SetClass t) => Time (TimeFacts t) t whereinstance (SetClass t) => TimeE (TimeFacts t) t whereinstance (SetClass t) => TimeTO (TimeFacts t) t where
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
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