Since there's nothing about this on google, I opened this issue.
I'm trying to compile this code:
module Random: Mirage_random.S = struct
include Mirage_random_stdlib
end
module Ipv4: Static_ipv4.Make(Random, Clock, Ethernet, Arp) = struct
include Static_ipv4
end
but I get this:
root@66f08fd7c55b:/workspaces/ocaml_env/mirage-tcpip/examples/raw_ip_tcp_example# dune build raw_ip_tcp_example.exe
Entering directory '/workspaces/ocaml_env/mirage-tcpip'
File "examples/raw_ip_tcp_example/raw_ip_tcp_example.ml", line 44, characters 36-37:
44 | module Ipv4: Static_ipv4.Make(Random, Clock, Ethern
^
Error: Syntax error: module path expected.
You can see the static_ipv4 file here https://github.com/mirage/mirage-tcpip/blob/master/src/ipv4/static_ipv4.mli#L17
I don't have any idea of why this error happens. I didn't include Clock, Ethernet, Arp because the error is already on Random. You can see the random signature here: https://github.com/mirage/mirage-random/blob/master/src/mirage_random.ml and the implementation I'm including here https://github.com/mirage/mirage-random-stdlib