-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type error into examples #32
Comments
I have same issues with @zepouet open detailsminttea feat/key-events [$?] via 🐫 v5.1.1 (default) ❄️ impure 2h11m8s
❯ opam --version
2.1.5 minttea feat/key-events [$?] via 🐫 v5.1.1 (default) ❄️ impure
❯ dune --version
3.14.0 minttea feat/key-events [$?] via 🐫 v5.1.1 (default) ❄️ impure
❯ opam exec -- dune build
File "minttea/program.ml", line 47, characters 54-59:
47 | let _ = Timer.send_after (self ()) (Timer ref) ~after |> Result.get_ok in
^^^^^
Error: This expression has type int64 but an expression was expected of type
float
File "minttea/renderer.ml", line 112, characters 36-54:
112 | Riot.Timer.send_interval ~every:(fps_to_float fps) (self ()) Tick
^^^^^^^^^^^^^^^^^^
Error: This expression has type int64 but an expression was expected of type
float
minttea feat/key-events [$?] via 🐫 v5.1.1 (default) ❄️ impure
❯ dune build
File "minttea/program.ml", line 47, characters 54-59:
47 | let _ = Timer.send_after (self ()) (Timer ref) ~after |> Result.get_ok in
^^^^^
Error: This expression has type int64 but an expression was expected of type
float
File "minttea/renderer.ml", line 112, characters 36-54:
112 | Riot.Timer.send_interval ~every:(fps_to_float fps) (self ()) Tick
^^^^^^^^^^^^^^^^^^
Error: This expression has type int64 but an expression was expected of type
float
|
I think this is a dependency problem, if you are trying to build the main branch i got it working with these steps:
that way you get config.ml and libc.ml on version 0.0.1, and the rest are for latest version of riot (which minttea depends on) libc and config.ml are currently being worked on so thats why im using 0.0.1 Not sure if this is 100% the correct way of doing it tho. |
Hello,
Just my first step with Minttea. Very good idea to be inspired by Elm and powered by OCaml.
Thanks a lot,
Nicolas
The text was updated successfully, but these errors were encountered: