}
boolean trivialDataType = dataTypeAst.constructors.length == 1 &&
- dataTypeAst.constructors[0].parameters.length == 1;
+ dataTypeAst.constructors[0].parameters.length == 1 &&
+ !external;
if(className == null && !trivialDataType)
className = compilationContext.namingPolicy.getDataTypeClassName(dataTypeAst.name);