package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val lines_of : string -> string BatEnum.t
val write_lines : string -> string BatEnum.t -> unit
val size_of : string -> int
val size_of_big : string -> Int64.t
type permission = BatFile.permission
val default_permission : permission
val user_read : permission
val user_write : permission
val user_exec : permission
val group_read : permission
val group_write : permission
val group_exec : permission
val other_read : permission
val other_write : permission
val other_exec : permission
val perm : permission list -> permission
val unix_perm : int -> permission
val set_permissions : string -> permission -> unit
val chmod : string -> permission -> unit
type open_in_flag = [
  1. | `create
  2. | `excl
  3. | `mmap
  4. | `nonblock
  5. | `text
]
val open_in : ?mode:open_in_flag list -> ?perm:permission -> string -> BatInnerIO.input
val with_file_in : ?mode:open_in_flag list -> ?perm:permission -> string -> (BatInnerIO.input -> 'a) -> 'a
type open_out_flag = [
  1. | `append
  2. | `create
  3. | `excl
  4. | `nonblock
  5. | `text
  6. | `trunc
]
val open_out : ?mode:open_out_flag list -> ?perm:permission -> string -> unit BatInnerIO.output
val with_file_out : ?mode:open_out_flag list -> ?perm:permission -> string -> (unit BatInnerIO.output -> 'a) -> 'a
type open_temporary_out_flag = [
  1. | `append
  2. | `create
  3. | `delete_on_exit
  4. | `excl
  5. | `nonblock
  6. | `text
  7. | `trunc
]
val open_temporary_out : ?mode:open_temporary_out_flag list -> ?prefix:string -> ?suffix:string -> ?temp_dir:string -> unit -> unit BatInnerIO.output * string
val with_temporary_out : ?mode:open_temporary_out_flag list -> ?prefix:string -> ?suffix:string -> ?temp_dir:string -> (unit BatInnerIO.output -> string -> 'a) -> 'a
OCaml

Innovation. Community. Security.