From 72a061d101b9c58ae4be9a2a20b6c5bff808b975 Mon Sep 17 00:00:00 2001 From: Sungkeun Cho Date: Tue, 18 Feb 2020 04:54:22 -0800 Subject: [PATCH] [infer] Fix `make deadcode` Summary: ``` [*ERROR**][99281] Entering directory '/Users/scho/infer/infer/src' [*ERROR**][99281] File "istd/IResult.mli", line 8, characters 25-43: [*ERROR**][99281] Error: Unbound module Result.Monad_infix [*ERROR**][99281] make[1]: *** [detect_dead_code] Error 1 make: *** [real_deadcode] Error 2 ``` because of no `open! IStd`. Reviewed By: dulmarod Differential Revision: D19948195 fbshipit-source-id: 4f36bcb47 --- infer/src/istd/IResult.ml | 3 +++ infer/src/istd/IResult.mli | 3 +++ 2 files changed, 6 insertions(+) diff --git a/infer/src/istd/IResult.ml b/infer/src/istd/IResult.ml index 4319f11bb..726cd1dfe 100644 --- a/infer/src/istd/IResult.ml +++ b/infer/src/istd/IResult.ml @@ -4,6 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) + +open! IStd + module Let_syntax = struct include Result.Monad_infix diff --git a/infer/src/istd/IResult.mli b/infer/src/istd/IResult.mli index 4d0c2f13f..70eec964c 100644 --- a/infer/src/istd/IResult.mli +++ b/infer/src/istd/IResult.mli @@ -4,6 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) + +open! IStd + module Let_syntax : sig include module type of Result.Monad_infix