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 type MONAD = sig
type 'a t
val return : 'a -> 'a t
val bind : ('a -> 'b t) -> 'a t -> 'b t
end
let foo : {X: MONAD} -> string X.t -> unit = fun _ s -> ()
(* Error: This function should have type {X : MONAD} -> person X.t -> unit
but its first argument is not labelled
*)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: