* [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
caml-list - the Caml user's mailing list
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://inbox.vuxu.org/caml-list
git clone --mirror https://inbox.ocaml.org/caml-list
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 caml-list caml-list/ http://inbox.vuxu.org/caml-list \
caml-list@inria.fr
public-inbox-index caml-list
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.vuxu.org/vuxu.archive.caml-list
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git