package biocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Manipulate the lines of a file.

type item = Line.t
val sexp_of_item : item -> Sexplib0.Sexp.t
val item_of_sexp : Sexplib0.Sexp.t -> item
module MakeIO (Future : Future.S) : sig ... end
include sig ... end
val write_file : ?perm:int -> ?append:bool -> string -> item Future_unix.Pipe.Reader.t -> unit Future_unix.Deferred.t
val of_char_stream : char Stream.t -> item Stream.t

Parse a stream of characters into a stream of lines.

val of_channel : Core_kernel.In_channel.t -> item Stream.t

Get a stream of lines out of an input-channel.

val of_string : string -> item Stream.t

Get a stream of lines out a string

val to_channel : item Stream.t -> Core_kernel.Out_channel.t -> unit

Write a stream of lines to an output-channel.

val with_file : string -> f:(Line.t Stream.t -> 'a) -> 'a
module Buffer : sig ... end

Buffer used to parse strings into lines.

module Transform : sig ... end

Transforms from/to Lines.item.

OCaml

Innovation. Community. Security.