package mdx

  1. Overview
  2. Docs
Executable code blocks inside markdown files

Install

Dune Dependency

Authors

Maintainers

Sources

mdx-1.8.0.tbz
sha256=a248a58792c132f5b63982148ad85cc1d531a354cbbdd08156e108d5c6b951dc
sha512=1233893859b0f67a43759ec0c1c795dbbffa40555eb37440ea161dc3f773b8724f368d749a05555687244a62af8036a97357bec86376659d70f3d9d4355496e2

doc/mdx.csexp/Csexp/Make/module-type-Input/index.html

Module type Make.Input

type t

Type of an input source.

module Monad : sig ... end

Monad wrapping values returned by the input source

val read_string : t -> int -> (string, string) Result.result Monad.t

read_string source size reads exactly size bytes from source and return them as a string. Reaching the end of the input before size bytes have been read is an Error.

val read_char : t -> (char, string) Result.result Monad.t

read_char source is read_string source 1, except the result is returned as a single character.

OCaml

Innovation. Community. Security.