Library
Module
Module type
Parameter
Class
Class type
Markup.ml interface for monadic I/O libraries such as Lwt and Async. This signature is included in the signature of Markup_lwt
, with type 'a io
replaced by 'a Lwt.t
. To use the functions in this interface, use Markup_lwt
. A Markup_async
module has not (yet) been implemented.
All of the functions here correspond directly to functions in Markup
with the same name. See that module for details on each function.
The difference is that functions here can take 'a io
(i.e. 'a Lwt.t
) threads instead of plain functions as arguments. As a consequence, all of them evaluate to either async
streams, or to threads of type 'a io
.
Note that several functions in Markup
can take async
streams as arguments, such as Markup.map
, Markup.parse_xml
, or Markup.trim
. Where those functions, like Markup.trim
, don't take another function as argument, they are not duplicated in this signature. Markup.map
and Markup.parse_xml
are provided here because some of their function arguments are replaced by 'a io
threads.
All functions here accept both sync
and async
streams as arguments.
module Encoding : sig ... end
Asynchronous counterpart to Markup.Encoding
.
load s
converts a general stream s
to a synchronous stream by buffering it.