caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Joel Reymont <joelr1@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Re: fighting the type system
Date: Wed, 23 Mar 2011 22:19:21 +0000	[thread overview]
Message-ID: <67C135E4-6D99-410A-A88A-C3AEF6275698@gmail.com> (raw)
In-Reply-To: <07EE3576-E5F0-4187-AE8C-DEFEA5C92303@gmail.com>

One of the issues is that the full definition of Foo.mli is larger than I posted (below) and I'm using other methods apart from write, e.g. grab_page.

My writable type really needs to include write -and- grab_page, for example.

	Thanks, Joel

---

open Thrift
class request :
object ('a)
  method get_page : Doc_types.document option
  method grab_page : Doc_types.document
  method set_page : Doc_types.document -> unit
  method unset_page : unit
  method reset_page : unit
  method copy : 'a
  method write : Protocol.t -> unit
end
val read_request : Protocol.t -> request
class response :
object ('a)
  method get_page : Doc_types.document option
  method grab_page : Doc_types.document
  method set_page : Doc_types.document -> unit
  method unset_page : unit
  method reset_page : unit
  method get_sidebar_pages : Doc_types.document list option
  method grab_sidebar_pages : Doc_types.document list
  method set_sidebar_pages : Doc_types.document list -> unit
  method unset_sidebar_pages : unit
  method reset_sidebar_pages : unit
  method copy : 'a
  method write : Protocol.t -> unit
end
val read_response : Protocol.t -> response

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------





  reply	other threads:[~2011-03-23 22:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-23 22:01 [Caml-list] " Joel Reymont
2011-03-23 22:19 ` Joel Reymont [this message]
2011-03-23 23:52   ` [Caml-list] " Joel Reymont
2011-03-23 23:56 ` [Caml-list] " Jacques Garrigue
2011-03-24  0:16   ` Joel Reymont
2011-03-24  0:48     ` Jacques Garrigue

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=67C135E4-6D99-410A-A88A-C3AEF6275698@gmail.com \
    --to=joelr1@gmail.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;
as well as URLs for NNTP newsgroup(s).