I want to place signature/structure pair inside a structure, like so:
structure Outer :> OUTER =
struct
signature INNER =
sig
...
end
structure Inner :> INNER =
struct
...
end
end
but even the simplest of examples produces an error:
../test.sml:1.18-2.6 Error: syntax error: replacing STRUCT with EQUALOP ../test.sml:5.6 Error: syntax error found at END
It appears that signatures are not allowed inside structures. What is the best way to achieve this functionality?