caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Are there Haskell type families in camp
@ 2020-07-18 16:55 Helmut Brandl
  0 siblings, 0 replies; only message in thread
From: Helmut Brandl @ 2020-07-18 16:55 UTC (permalink / raw)
  To: caml users

Hi List,

I was studying the possibilities of GADTs to emulate dependently typed language features. I basically found that Ocaml and Haskell have rather similar possibilities to define types indexed by types (i.e. GADTs).

The singleton types are rather equivalent as well. I.e. I can have a runtime representation of a type to make runtime decisions.

However I have found no equivalent of Haskell’s type families in Ocaml. My question: Is there a way to use singleton types to do type computation in Ocaml?

Thanks for any hint.

— Helmut

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-18 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-18 16:55 [Caml-list] Are there Haskell type families in camp Helmut Brandl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).