Fix use of anonymous type in interactive module

The interactive module used an anonymous type that did not conform to
the new syntax. The type is given a name to be compatible with both old
and new versions of the compiler.