Module NesUnix

include module type of struct include Nes end
include module type of struct include NesPervasives end
val foi : int -> float
val fpf : Stdlib.Format.formatter -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a
val spf : ('a, unit, string) Stdlib.format -> 'a
val aspf : ('a, Stdlib.Format.formatter, unit, string) Stdlib.format4 -> 'a
val kspf : (string -> 'a) -> ('b, unit, string, 'a) Stdlib.format4 -> 'b
val kaspf : (string -> 'a) -> ('b, Stdlib.Format.formatter, unit, 'a) Stdlib.format4 -> 'b
val ssf : string -> ('a, 'b, 'c, 'd) Stdlib.Scanf.scanner
type 'a seq = 'a Stdlib.Seq.t
val id : 'a -> 'a
val in_channel_to_string : Stdlib.in_channel -> string
val pmod : int -> int -> int
val pdiv : int -> int -> int
val first_non_zero : ?or_:int -> (unit -> int) list -> int
val (||>) : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c
val (%) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b
type ('a, 'b) either = ('a, 'b) Stdlib.Either.t =
  1. | Left of 'a
  2. | Right of 'b
val either_to_yojson : 'a 'b. ('a -> Yojson.Safe.t) -> ('b -> Yojson.Safe.t) -> ('a, 'b) either -> Yojson.Safe.t
val either_of_yojson : 'a 'b. (Yojson.Safe.t -> 'a Ppx_deriving_yojson_runtime.error_or) -> (Yojson.Safe.t -> 'b Ppx_deriving_yojson_runtime.error_or) -> Yojson.Safe.t -> ('a, 'b) either Ppx_deriving_yojson_runtime.error_or
val _ : (Yojson.Safe.t -> 'a Ppx_deriving_yojson_runtime.error_or) -> (Yojson.Safe.t -> 'b Ppx_deriving_yojson_runtime.error_or) -> Yojson.Safe.t -> ('a, 'b) either Ppx_deriving_yojson_runtime.error_or
val fixpoint : ?eq:('a -> 'a -> bool) -> ('a -> 'a) -> 'a -> 'a
val curry : (('a * 'b) -> 'c) -> 'a -> 'b -> 'c
val uncurry : ('a -> 'b -> 'c) -> ('a * 'b) -> 'c
val uid : unit -> string

A helper to generate unique identifiers that are somewhat readable. It is not cryptographically secure, but probably good enough.

val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c
val const : 'a -> 'b -> 'a
val const2 : 'a -> 'b -> 'c -> 'a
val ok : 'a -> ('a, 'b) Stdlib.result
val error : 'a -> ('b, 'a) Stdlib.result
val some : 'a -> 'a option
val left : 'a -> ('a, 'b) Stdlib.Either.t
val right : 'a -> ('b, 'a) Stdlib.Either.t
val lwt : 'a -> 'a Lwt.t
val lwt_unit : unit Lwt.t
val lwt_none : 'a option Lwt.t
val lwt_some : 'a -> 'a option Lwt.t
val lwt_nil : 'a list Lwt.t
val lwt_empty : string Lwt.t
val lwt_true : bool Lwt.t
val lwt_false : bool Lwt.t
val lwt_ok : 'a -> ('a, 'b) Stdlib.result Lwt.t
val lwt_error : 'a -> ('b, 'a) Stdlib.result Lwt.t
val lwt_left : 'a -> ('a, 'b) Stdlib.Either.t Lwt.t
val lwt_right : 'a -> ('b, 'a) Stdlib.Either.t Lwt.t
val (<$>) : ('a -> 'b) -> 'a Lwt.t -> 'b Lwt.t
val (<%>) : ('a -> 'b) -> ('c -> 'a Lwt.t) -> 'c -> 'b Lwt.t
val (>>=) : 'a Lwt.t -> ('a -> 'b Lwt.t) -> 'b Lwt.t
val (=<<) : ('a -> 'b Lwt.t) -> 'a Lwt.t -> 'b Lwt.t
val (<=<) : ('a -> 'b Lwt.t) -> ('c -> 'a Lwt.t) -> 'c -> 'b Lwt.t
val failwithf : ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
val invalid_argf : ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
module Char = Nes.Char
module Filename = Nes.Filename
module Format = Nes.Format
module Int = Nes.Int
module Int64 = Nes.Int64
module List = Nes.List
module Lwt = Nes.Lwt
module Lwt_list = Nes.Lwt_list
module Lwt_stream = Nes.Lwt_stream
module Seq = Nes.Seq
module String = Nes.String
module Option = Nes.Option
module Result = Nes.Result
module Fun = Nes.Fun
module Uri = Nes.Uri
module Cache = Nes.Cache
module Datetime = Nes.Datetime
module Depart = Nes.Depart
module PartialDate = Nes.PartialDate
module Slice = Nes.Slice
module Json = Nes.Json
module Void = Nes.Void
module Password = Nes.Password
module NEList = Nes.NEList
module NEString = Nes.NEString
module Pair = Nes.Pair
module Fresh = Nes.Fresh
module Olwt = Nes.Olwt
module Rlwt = Nes.Rlwt
module Process = NesProcess
module HashedSecret = NesHashedSecretUnix
module Filesystem = NesFilesystem