1 signature A
= sig type t
val a
: t
end
3 functor F(A
: sig type t
val pr
: t
-> string end) =
4 struct datatype k
= A
of A
.t
5 fun pr (A t
) = "A(" ^ A
.pr t ^
")"
9 struct type t
= A
.t
val b
= A
.a
end
11 functor H(A
: sig type t
type s
val a
: s
16 structure A1
: sig type t
val pr
: t
-> string end = A
20 val _
= print ("value is " ^ A2
.pr a ^
"\n")
42 functor F (): S
= struct end
44 signature S
= sig val y
: int end