package hack_parallel

  1. Overview
  2. Docs
Parallel and shared memory library

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.1.tar.gz
md5=ba7c72bc207e326b72e294fc76f6ad2c
sha512=5020d47f97bea2f88e2a40411894d03232a7f2282606926c93c7d4c96d72e94a966be852897a9b16f7e0893ba376512045abb9d93020a7c03c3def4f3d918f8e

doc/hack_parallel.hh_json/Hh_json/index.html

Module Hh_jsonSource

* Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *

* Hh_json parsing and pretty printing library.

Sourcetype json =
  1. | JSON_Object of (string * json) list
  2. | JSON_Array of json list
  3. | JSON_String of string
  4. | JSON_Number of string
  5. | JSON_Bool of bool
  6. | JSON_Null
Sourceexception Syntax_error of string
Sourceval json_to_string : ?pretty:bool -> json -> string
Sourceval json_to_multiline : json -> string
Sourceval json_to_output : out_channel -> json -> unit
Sourceval json_of_string : ?strict:bool -> string -> json
Sourceval json_of_file : ?strict:bool -> string -> json
Sourceval get_object_exn : json -> (string * json) list
Sourceval get_array_exn : json -> json list
Sourceval get_string_exn : json -> string
Sourceval get_number_exn : json -> string
Sourceval get_number_int_exn : json -> int
Sourceval get_bool_exn : json -> bool
Sourceval opt_string_to_json : string option -> json
Sourceval opt_int_to_json : int option -> json
Sourceval int_ : int -> json
Sourceval string_ : string -> json

Types and functions for monadic API for traversing a JSON object.

Sourcetype json_type =
  1. | Object_t
  2. | Array_t
  3. | String_t
  4. | Number_t
  5. | Integer_t
  6. | Bool_t
Sourcemodule type Access = sig ... end

* This module gives monadic recursive access to values within objects by key. * It uses the Result.t to manage control flow in the monad when an error is * encountered. It also tracks the backtrace of the keys accessed to give * detailed error messages. * * Usage: * To access the boolean value "qux" from the following json: * "foo": { "bar" : { "baz" : { "qux" : true

OCaml

Innovation. Community. Security.