From: Robert Fischer <robert@fischerventure.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Variant type with 'a type?
Date: Mon, 09 Jun 2008 21:32:21 -0500 [thread overview]
Message-ID: <484DE7B5.6080403@fischerventure.com> (raw)
In-Reply-To: <484DE703.50503@smokejumperit.com>
Figured it out -- "type 'a maybe = Result of 'a | Exception of exn"
Putting the tick-a before the "maybe" was nonintuitive to me.
~~ Robert.
Robert Fischer wrote:
> Is it possible to do a variant type along the lines of "type try = Result of 'a | Exception of exn"?
> When I try that, I get an error saying "Unbound type parameter 'a".
>
> ~~ Robert.
>
> _______________________________________________
> 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
>
next prev parent reply other threads:[~2008-06-10 2:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 2:29 Robert Fischer
2008-06-10 2:32 ` Robert Fischer [this message]
2008-06-10 12:01 ` [Caml-list] " Brian Hurt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=484DE7B5.6080403@fischerventure.com \
--to=robert@fischerventure.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox