caml-list - the Caml user's mailing list
 help / Atom feed
* [Caml-list] Are there Haskell type families in camp
@ 2020-07-18 16:55 Helmut Brandl
  0 siblings, 0 replies; 1+ messages 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] 1+ messages in thread

only message in thread, back to index

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

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox