You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen that the recommended setup produces some type errors often; most of them seem like maybe a one-off typo somewhere?
For example, given this interface:
(* Petanque.Agent *)moduleState : sigtypet = intvalgoals : t -> stringoptionendmoduleStart_error : sigtypet = stringend(** [start uri thm] start a new proof for theorem [thm] in file [uri]. Note that uri is expected to be in the [file:///] format. *)valstart : uri:string-> thm:string-> (State.t, Start_error.t) Result.tmoduleRun_error : sigtypet = stringend(** [run_tac st tac] tries to run [tac] over state [st] *)valrun_tac : st:State.t-> tac:string-> (State.t, Run_error.t) Result.t
We get on import:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: File "_none_", line 1:
Error: This expression has type
(Petanque.Agent.State.t, Petanque.Agent.Start_error.t) Result.t =
(Petanque.Agent.State.t, Petanque.Agent.Start_error.t) result
but an expression was expected of type (string, string) result
Type Petanque.Agent.State.t = int is not compatible with type string
Thanks a lot for this package and for the help!
The text was updated successfully, but these errors were encountered:
Dear @thierry-martinez ,
I've seen that the recommended setup produces some type errors often; most of them seem like maybe a one-off typo somewhere?
For example, given this interface:
We get on import:
Thanks a lot for this package and for the help!
The text was updated successfully, but these errors were encountered: