GithubHelp home page GithubHelp logo

lexifi / lrt Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 3.0 1.15 MB

LexiFi runtime types

Home Page: https://lexifi.github.io/lrt/lrt/Lrt/index.html

License: MIT License

OCaml 99.70% Standard ML 0.18% Makefile 0.12%

lrt's People

Contributors

khady avatar pkel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lrt's Issues

Supported OCaml versions

I tried to install lrt using OCaml 4.12.0 and I get following error:

#=== ERROR while compiling lrt.dev ============================================#
# context     2.0.8 | linux/x86_64 | ocaml-base-compiler.4.12.0 | pinned(git+ssh://[email protected]/LexiFi/lrt.git#038ff963)
# path        ~/03-src/game/_opam/.opam-switch/build/lrt.dev
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lrt -j 15
# exit-code   1
# env-file    ~/.opam/log/lrt-866229-099be7.env
# output-file ~/.opam/log/lrt-866229-099be7.out
### output ###
# Error: This expression has type
# [...]
#            Ppxlib__Ast_pattern0.t
#        but an expression was expected of type
#          ((string Ppxlib__.Import.loc list * Ppxlib__.Import.pattern) option,
#           'b, 'c)
#          Ppxlib__.Ast_pattern0.t =
#            ((string Ppxlib__.Import.loc list * Ppxlib__.Import.pattern)
#             option, 'b, 'c)
#            Ppxlib__Ast_pattern0.t
#        Type Ppxlib__.Import.pattern = Astlib.Ast_414.Parsetree.pattern
#        is not compatible with type
#          string Ppxlib__.Import.loc list * Ppxlib__.Import.pattern 

I suppose my version of OCaml that is too recent. Are there any plans to update? What is the OCaml version you are using?

Also the instruction in the README.md does not work, for me opam pin add lrt [email protected]:LexiFi/lrt.git did the trick.

Compile error: ppxlib type mismatch

Some details:

  • System: 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 arm64
  • opam version 2.1.4
  • OCaml version 4.14.1
  • ppxlib version 0.28.0

How I tried to install lrt:

opam pin add landmarks git+https://github.com/lexifi/landmarks
opam pin add lrt git+https://github.com/lexifi/lrt

The command given in the readme doesn't work, btw, but that is a different issue. The compile error:

[ERROR] The compilation of lrt.dev failed at "dune build -p lrt -j 7".

#=== ERROR while compiling lrt.dev ============================================#
# context     2.1.4 | macos/arm64 | ocaml.4.14.1 | pinned(git+https://github.com/lexifi/lrt#038ff963)
# path        ~/.opam/default/.opam-switch/build/lrt.dev
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lrt -j 7
# exit-code   1
# env-file    ~/.opam/log/lrt-79951-0603fb.env
# output-file ~/.opam/log/lrt-79951-0603fb.out
### output ###
# Error: This expression has type
# [...]
#            Ppxlib__Ast_pattern0.t
#        but an expression was expected of type
#          ((string Ppxlib__.Import.loc list * Ppxlib__.Import.pattern) option,
#           'b, 'c)
#          Ppxlib__.Ast_pattern0.t =
#            ((string Ppxlib__.Import.loc list * Ppxlib__.Import.pattern)
#             option, 'b, 'c)
#            Ppxlib__Ast_pattern0.t
#        Type Ppxlib__.Import.pattern = Parsetree.pattern
#        is not compatible with type
#          string Ppxlib__.Import.loc list * Ppxlib__.Import.pattern

Suggestion - smaller core library

Great to see this library! I would suggest providing a smaller Lrt core. In particular I think Lrt.Check and Lrt.Json should rather be exposed as separate libraries.

Also, for consistency I'd go with typ_eq or type_eq.ml instead of TypeEq.ml.

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.