This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "ocaml" {>= "4.02.3" & < "4.04.0"} | "ocaml" {>= "4.04.0" & "ppx_yojson_conv"} | |
| "dune" {build & >= "1.8.0"} | |
| "ocamlfind" {>= "1.5.2"} | |
| "yojson" | |
| "ppx_yojson_conv_lib" | |
| "mdx" {with-test & >= "1.3.0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "merlin", | |
| "dependencies": { | |
| "@opam/dune": "1.11.0", | |
| "@opam/mdx": ">=1.3.0", | |
| "@opam/menhir": "20190626", | |
| "@opam/yojson": "*", | |
| "@opam/ppx_yojson_conv": "*", | |
| "@opam/ppx_yojson_conv_lib": "*", | |
| "@opam/ocamlfind": ">=1.5.2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ['/Users/zindel/.opam/4.07.1/bin/ocamlmerlin', 'server', 'locate', '-look-for', 'ml', '-position', '185:21', '-filename', '/Users/zindel/ocaml/flow/hack/utils/hh_json/hh_json.mli'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "merlin", | |
| "esy": { | |
| "build": [ | |
| "dune build -p merlin-lsp" | |
| ] | |
| }, | |
| "dependencies": { | |
| "@opam/dune": "1.11.0", | |
| "@opam/mdx": ">=1.3.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type t = string | |
| [@@deriving_inline yojson] | |
| let _ = fun (_ : t) -> () | |
| let t_of_yojson = (string_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> t) | |
| let _ = t_of_yojson | |
| let t_of_yojson' = | |
| (let _tp_loc = "src/lsp/uri.ml.t" in | |
| fun yojson -> | |
| Ppx_yojson_conv_lib.Yojson_conv.Result.pack | |
| (fun yojson -> t_of_yojson yojson) yojson : Ppx_yojson_conv_lib.Yojson.Safe.t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "merlin", | |
| "esy": { | |
| "buildsInSource": "unsafe", | |
| "exportedEnv": { | |
| "CHECK_IF_PREINSTALLED": {"val": "false", "scope": "global"} | |
| }, | |
| "buildEnv": { | |
| "CHECK_IF_PREINSTALLED": "false" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "merlin", | |
| "esy": { | |
| "buildInSource": "unsafe" | |
| }, | |
| "dependencies": { | |
| "@opam/dune": "1.8.0", | |
| "@opam/mdx": ">=1.3.0", | |
| "@opam/menhir": "20190626", | |
| "@opam/yojson": "*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module IntMap = Map.Make(struct type t = int let compare = compare end) | |
| let hello () = | |
| let input = [1;2;3;4;4;5;100;100;1;2] in | |
| let counts = | |
| List.fold_left (fun map n -> IntMap.update n ( | |
| function | |
| | None -> Some 1 | |
| | Some c -> Some (c + 1) | |
| ) map) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let resolve = | |
| ( | |
| ~fullMetadata=false, | |
| ~name: string, | |
| ~spec: option(VersionSpec.t)=?, | |
| resolver: t, | |
| ) => | |
| RunAsync.Syntax.( | |
| switch (Resolutions.find(resolver.resolutions, name)) { | |
| | Some(resolution) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('LE', function() { | |
| it('"<2.0.0" for: 1.0.0, 1.5.0', async () => { | |
| const p = await createSandbox({ | |
| opam: [{name: 'pkg', version: '1.0.0'}, {name: 'pkg', version: '1.5.0'}], | |
| root: { | |
| dependencies: { | |
| '@opam/pkg': '<2.0.0', | |
| }, | |
| }, | |
| }); |