package bio_io

  1. Overview
  2. Docs

Module In_channel.TSource

include module type of struct include Private.Peekable_in_channel end
include Ppx_compare_lib.Equal.S with type t := t
Sourceval equal : t -> t -> bool
Sourceval stdin : t
Sourceval create : Base.string -> t
Sourceval close : t -> Base.unit
Sourceval with_file : Base.string -> f:(t -> 'a) -> 'a
Sourceval input_all : t -> Base.string
Sourceval input_line : ?fix_win_eol:Base.bool -> t -> Base.string Base.option
Sourceval input_line_exn : ?fix_win_eol:Base.bool -> t -> Base.string
Sourceval fold_lines : ?fix_win_eol:Base.bool -> t -> init:'a -> f:('a -> Base.string -> 'a) -> 'a
Sourceval input_lines : ?fix_win_eol:Base.bool -> t -> Base.string Base.list
Sourceval iter_lines : ?fix_win_eol:Base.bool -> t -> f:(Base.string -> Base.unit) -> Base.unit
Sourceval read_lines : ?fix_win_eol:Base.bool -> Base.string -> Base.string Base.list
Sourceval read_all : Base.string -> Base.string

Both peek functions are safe to call in the context of one of the iterator functions.

Sourceval peek_char : ?fix_win_eol:Base.bool -> t -> Base.char Base.option
Sourceval peek_line : ?fix_win_eol:Base.bool -> t -> Base.string Base.option
Sourcetype record = Record.t
Sourceval input_record_exn : t -> Record.t option
OCaml

Innovation. Community. Security.