- not (null cons) && -- Not an abstract type (can arise if we're pruning tydecl imports)
- null other_cons
- = ASSERT( isDataTyCon tycon )
- newIds inst_con_arg_tys `thenSmpl` \ new_bindees ->
+ not (null cons) && -- Not an abstract type (can arise if we're pruning tydecl imports)
+ null other_cons &&
+ isDataTyCon tycon -- doesn't apply to (constructor-less) newtypes
+ = newIds inst_con_arg_tys `thenSmpl` \ new_bindees ->