GithubHelp home page GithubHelp logo

stdlib-shims's Introduction

stdlib-shims

Compiling against this library allows to replace your uses of Pervasives with Stdlib before 4.08. For example you can use Stdlib.compare instead of Pervasives.compare. It does not however provide the new functions and modules that are being added in Stdlib module.

Installation

To install the project via opam, the standard package manager for OCaml, type:

opam install stdlib-shims

stdlib-shims's People

Contributors

clarus avatar damiendoligez avatar dbuenzli avatar dra27 avatar jeremiedimino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

stdlib-shims's Issues

usage?

how is this used?
merely adding this to opam dependency list still gets me unknown module Stdlib error

Missing 0.2.0 in opam-repository

The version 0.2.0 is not currently in opam-repository. However it is going to be required for the OCaml 4.12 support. Was there something stopping it to be fully released?

Why is there no Int module?

Is there a reason why there is no Int module in stdlib-shims? It is not clear to me from #9 (comment) if it should be part of the library or not.

I'd be happy to add the module if you are okay with it.

Can't build with OCaml 4.07.1 Win32

Here is the full log:

$ dune build -p stdlib-shims --verbose
# Workspace root: "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\.opam-switch\\build\\stdlib-shims.0.1.0"
# # Workspace root: "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\.opam-switch\\build\\stdlib-shims.0.1.0"
# Auto-detected concurrency: 4
Running[0]: C:\Users\dbely\.opam\4.07.1+local+vc15+x64\bin\ocamlc.opt.exe -config > C:\Users\dbely\AppData\Local\Temp\dune15f338.output
# # # Workspace root: "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\.opam-switch\\build\\stdlib-shims.0.1.0"
# # Auto-detected concurrency: 4
# Dune context:
#  {name = "default";
#    kind = "default";
#    profile = "release";
#    merlin = true;
#    for_host = None;
#    build_dir = "default";
#    toplevel_path =
#      Some External "C:/Users/dbely/.opam/4.07.1+local+vc15+x64/lib/toplevel";
#    ocaml_bin = External "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin";
#    ocaml =
#      External
#        "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocaml.exe";
#    ocamlc =
#      External
#        "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocamlc.opt.exe";
#    ocamlopt =
#      Some
#        External
#          "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocamlopt.opt.exe";
#    ocamldep =
#      External
#        "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocamldep.opt.exe";
#    ocamlmklib =
#      External
#        "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocamlmklib.opt.exe";
#    env =
#      map {"DUNE_CONFIGURATOR" :
#           "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocamlc.opt.exe";
#      "INSIDE_DUNE" : "1";
#      "MANPATH" :
#      "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\.opam-switch\\build\\stdlib-shims.0.1.0\\_build/install/default/bin";
#      "OCAMLFIND_IGNORE_DUPS_IN" :
#      "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\.opam-switch\\build\\stdlib-shims.0.1.0\\_build/install/default/lib";
#      "OCAMLPATH" :
#      "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\.opam-switch\\build\\stdlib-shims.0.1.0\\_build/install/default/lib"};
#    findlib_path =
#      [External "C:\\\\Users\\\\dbely\\\\.opam\\\\4.07.1+local+vc15+x64\\lib"];
#    arch_sixtyfour = true;
#    natdynlink_supported = true;
#    supports_shared_libraries = true;
#    opam_vars = map {};
#    ocaml_config =
#      {version = "4.07.1";
#        standard_library_default =
#          "C:/Users/dbely/.opam/4.07.1+local+vc15+x64/lib/ocaml";
#        standard_library =
#          "C:/Users/dbely/.opam/4.07.1+local+vc15+x64/lib/ocaml";
#        standard_runtime = "ocamlrun";
#        ccomp_type = "msvc";
#        c_compiler = "cl";
#        ocamlc_cflags = ["-nologo"; "-O2"; "-Gy-"; "-MD"];
#        ocamlopt_cflags = ["-nologo"; "-O2"; "-Gy-"; "-MD"];
#        bytecomp_c_compiler =
#          ["cl"; "-nologo"; "-O2"; "-Gy-"; "-MD";
#          "-D_CRT_SECURE_NO_DEPRECATE"];
#        bytecomp_c_libraries = ["advapi32.lib"; "ws2_32.lib"; "version.lib"];
#        native_c_compiler =
#          ["cl"; "-nologo"; "-O2"; "-Gy-"; "-MD";
#          "-D_CRT_SECURE_NO_DEPRECATE"];
#        native_c_libraries = ["advapi32.lib"; "ws2_32.lib"; "version.lib"];
#        cc_profile = [];
#        architecture = "amd64";
#        model = "default";
#        int_size = 63;
#        word_size = 64;
#        system = "win64";
#        asm = ["ml64"; "-nologo"; "-Cp"; "-c"; "-Fo"];
#        asm_cfi_supported = false;
#        with_frame_pointers = false;
#        ext_exe = ".exe";
#        ext_obj = ".obj";
#        ext_asm = ".asm";
#        ext_lib = ".lib";
#        ext_dll = ".dll";
#        os_type = "Win32";
#        default_executable_name = "camlprog.exe";
#        systhread_supported = true;
#        host = "msvc64";
#        target = "msvc64";
#        profiling = false;
#        flambda = false;
#        spacetime = false;
#        safe_string = false;
#        exec_magic_number = "Caml1999X023";
#        cmi_magic_number = "Caml1999I024";
#        cmo_magic_number = "Caml1999O023";
#        cma_magic_number = "Caml1999A023";
#        cmx_magic_number = "Caml1999Y023";
#        cmxa_magic_number = "Caml1999Z023";
#        ast_impl_magic_number = "Caml1999M023";
#        ast_intf_magic_number = "Caml1999N023";
#        cmxs_magic_number = "Caml1999D023";
#        cmt_magic_number = "Caml1999T024";
#        natdynlink_supported = true;
#        supports_shared_libraries = true;
#        windows_unicode = true};
#    which =
#      map {"ocaml" :
#           Some
#             External
#               "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocaml.exe";
#      "ocamlc" :
#      Some
#        External
#          "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocamlc.opt.exe";
#      "ocamlobjinfo" :
#      Some
#        External
#          "C:\\Users\\dbely\\.opam\\4.07.1+local+vc15+x64\\bin\\ocamlobjinfo.opt.exe"}}
Running[1]: (cd src && C:\Users\dbely\.opam\4.07.1+local+vc15+x64\bin\ocaml.exe -I +compiler-libs C:\Users\dbely\.opam\4.07.1+local+vc15+x64\.opam-switch\build\stdlib-shims.0.1.0\_build/.dune/default/src/dune.ml)
# Actual targets:
# - alias @@./default
Running[2]: (cd _build/default && C:\Users\dbely\.opam\4.07.1+local+vc15+x64\bin\ocamlopt.opt.exe -w -40 -g -a -o src/stdlib_shims.cmxa)
File "_build/.dune/default/src/dune", line 2, characters 0-75:
2 | (library
3 |  (wrapped false)
4 |  (name stdlib_shims)
5 |  (public_name stdlib-shims))
Error: Rule failed to generate the following targets:
- src/stdlib_shims.lib

Looks like ocamlopt -a tries to create an empty library and so there is no .lib file? With OCaml 4.02.3 Win32 I have no such problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.