An interface module cannot contain any private declarations or rules.

#2174   Compile-time error

An interface module cannot contain any private declarations or rules.

Explanation

An interface module can contain only constant, global, record, opaque, catch, and function declarations, and they must all be exported.