this repo has no description
1opam-version: "2.0" 2maintainer: "Edgar Aroutiounian <edgar.factorial@gmail.com>" 3authors: "Edgar Aroutiounian <edgar.factorial@gmail.com>" 4homepage: "https://github.com/fxfactorial/ocaml-linenoise" 5bug-reports: "https://github.com/fxfactorial/ocaml-linenoise/issues" 6license: "BSD-3-Clause" 7dev-repo: "git+https://github.com/fxfactorial/ocaml-linenoise.git" 8build: [ 9 ["oasis" "setup"] 10 ["ocaml" "setup.ml" "-configure" "--prefix" prefix] 11 ["ocaml" "setup.ml" "-build"] 12 ["oasis" "setup"] {with-test} 13 ["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test} 14 ["ocaml" "setup.ml" "-build"] {with-test} 15 ["ocaml" "setup.ml" "-test"] {with-test} 16] 17install: ["ocaml" "setup.ml" "-install"] 18remove: ["ocamlfind" "remove" "linenoise"] 19depends: [ 20 "ocaml" 21 "oasis" {build & >= "0.4"} 22 "ocamlfind" {build} 23] 24post-messages: [ 25 "Here is the simplest program:" 26 " 27let rec user_input prompt cb = 28 match LNoise.linenoise prompt with 29 | None -> () 30 | Some v -> cb v; 31 user_input prompt cb 32 33let () = 34 (fun from_user -> Printf.sprintf \"Got: %s\" from_user |> print_endline) 35 |> user_input \"test_program> \" 36 " 37 " 38and compile with: 39$ ocamlfind ocamlopt ex.ml -package linenoise -linkpkg -o T 40 " 41] 42synopsis: "Simple readline like functionality" 43description: """ 44These are self contained OCaml bindings to linenoise, 45no system libraries needed at all. 46 47Here's the simplest program: 48 49let rec user_input prompt cb = 50 match LNoise.linenoise prompt with 51 | None -> () 52 | Some v -> cb v; 53 user_input prompt cb 54 55let () = 56 (fun from_user -> Printf.sprintf "Got: %s" from_user |> print_endline) 57 |> user_input "test_program> " 58 59and compile with: 60$ ocamlfind ocamlopt ex.ml -package linenoise -linkpkg -o T""" 61flags: light-uninstall 62url { 63 src: "https://github.com/fxfactorial/ocaml-linenoise/archive/v0.9.0.tar.gz" 64 checksum: [ 65 "sha256=dacc2f1be2ad819c3737d4ca4f06e5258770bbddfb1277848ea4780b40506b79" 66 "md5=90fd86ede3d31cee3f6380f5b35c9199" 67 ] 68}