* typeclasses?
@ 2010-02-03 23:02 Raoul Duke
2010-02-04 8:33 ` [Caml-list] typeclasses? Yoann Padioleau
2010-02-04 8:46 ` dmitry grebeniuk
0 siblings, 2 replies; 3+ messages in thread
From: Raoul Duke @ 2010-02-03 23:02 UTC (permalink / raw)
To: OCaml
hi,
is there a most-favored-implementation of typeclasses for OCaml?
thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] typeclasses?
2010-02-03 23:02 typeclasses? Raoul Duke
@ 2010-02-04 8:33 ` Yoann Padioleau
2010-02-04 8:46 ` dmitry grebeniuk
1 sibling, 0 replies; 3+ messages in thread
From: Yoann Padioleau @ 2010-02-04 8:33 UTC (permalink / raw)
To: Raoul Duke; +Cc: OCaml
On Feb 3, 2010, at 3:02 PM, Raoul Duke wrote:
>
> hi,
Hi,
>
> is there a most-favored-implementation of typeclasses for OCaml?
You mean how to solve in OCaml problems people solve using type-classes
in haskell ?
- For Eq, ocaml has a polymorphic =
- For Ord, ocaml has a polymprohic <
- For Show, there is sexplib, json-static, ocaml Dumper
- Otherwise there is classes and module/functors, or just passing
record containg functions, which can mimic sometimes what type classes provides.
If you want real type-classes in OCaml, join the long list of people begging
for Xavier-Leroy/Vouillon/Doligez/Guarrigue/real-programmers... to implement it
(this list of begging people usually includes people who are too
lazy/incompetent/afraid-to-look-in-ocaml-source to implement and rely on other
busy people to do the job).
>
> thanks.
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] typeclasses?
2010-02-03 23:02 typeclasses? Raoul Duke
2010-02-04 8:33 ` [Caml-list] typeclasses? Yoann Padioleau
@ 2010-02-04 8:46 ` dmitry grebeniuk
1 sibling, 0 replies; 3+ messages in thread
From: dmitry grebeniuk @ 2010-02-04 8:46 UTC (permalink / raw)
To: Raoul Duke
> is there a most-favored-implementation of typeclasses for OCaml?
I use "deriving", mostly for Show typeclass.
For now, "deriving" it is not maintained by author, and there is
a new repository with some issues fixed:
http://repo.or.cz/w/deriving.git
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-04 8:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-03 23:02 typeclasses? Raoul Duke
2010-02-04 8:33 ` [Caml-list] typeclasses? Yoann Padioleau
2010-02-04 8:46 ` dmitry grebeniuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox