When I have several dependencies, say
module A = struct open B ... end module B = struct ... end
Is it possible to download the OCaml toplevel / utop A.ml download with all the dependencies (i.e. #use "./A.ml"B.ml automatically loads)?
#use "./A.ml"
You must compile all your modules with ocamlc to create files a.cmoand b.cmothen run ocaml b.cmo a.cmo(order is important because it Bmust be loaded before A).
a.cmo
b.cmo
ocaml b.cmo a.cmo
B
A
Source: https://habr.com/ru/post/1534376/More articles:Can we set the display layout using wkhtmltopdf.exe for pdf - .netunack multiindex dataframe to flat data frame in pandas - pythonPandas DataFrame Sort: want to sum and sort, but keep the column names - sortingForce update for an object - javaThe difference between downloading a driver and registering drivers - javaExample C ++ 11 unlimited unions - c ++ 11What is the best approach for determining visibility for multiple controls - arraysУстановите VerticalAlignment в DrawText - c#Показывать список зарегистрированных пользователей (паспортные, сеансы, возможно, сокеты)? - node.jsMake tag update while dragging a slider - javafxAll Articles