Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Union of polymorphic variants...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stephane Glondu <steph@g...>
Subject: Union of polymorphic variants...

Why isn't possible to do the following?

type b = [`A of [`B of bool]]
type c = [`A of [`C of char]]
type a = [b|c]

I expect the last declaration to be equivalent to:

type a = [`A of [`B of bool | `C of char]]


Stephane Glondu