Summary: In preparation for splitting Import into multiple modules. Reviewed By: ngorogiannis Differential Revision: D20482768 fbshipit-source-id: 1efd33863master
parent
124a1fed20
commit
9c77d7b2a4
@ -0,0 +1,28 @@
|
||||
(*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
|
||||
(** Pretty-printer for argument type. *)
|
||||
type 'a pp = Format.formatter -> 'a -> unit
|
||||
|
||||
(** Format strings. *)
|
||||
type ('a, 'b) fmt = ('a, 'b) Trace.fmt
|
||||
|
||||
module Sexp = Sexplib.Sexp
|
||||
|
||||
module type Applicative_syntax = sig
|
||||
type 'a t
|
||||
|
||||
val ( let+ ) : 'a t -> ('a -> 'b) -> 'b t
|
||||
val ( and+ ) : 'a t -> 'b t -> ('a * 'b) t
|
||||
end
|
||||
|
||||
module type Monad_syntax = sig
|
||||
include Applicative_syntax
|
||||
|
||||
val ( let* ) : 'a t -> ('a -> 'b t) -> 'b t
|
||||
val ( and* ) : 'a t -> 'b t -> ('a * 'b) t
|
||||
end
|
Loading…
Reference in new issue