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
# module M = struct type t = int end;;
module M : sig type t = int end
# type t = [%import: M.t] [@@deriving show];;
Error: [%import]: cannot locate module M
I just ran into the issue because I couldn't add the [@@deriving] clause directly to the module M for formal reasons (a bad interaction with include module type of), so I thought I could derive in another module defined in the same file. Fortunately, I could work around my moving M to a file of its own. Neverthless, this restriction was a surprise.
The text was updated successfully, but these errors were encountered:
e.g.
I just ran into the issue because I couldn't add the
[@@deriving]
clause directly to the moduleM
for formal reasons (a bad interaction withinclude module type of
), so I thought I could derive in another module defined in the same file. Fortunately, I could work around my movingM
to a file of its own. Neverthless, this restriction was a surprise.The text was updated successfully, but these errors were encountered: