proc typeToIr(c: var TypesCon; g: var TypeGraph; t: PType): TypeId {....raises: [
Exception, ValueError, KeyError, IOError, ERecoverableError, OSError,
IllegalTypeRecursionError], tags: [RootEffect, ReadDirEffect, WriteIOEffect,
ReadIOEffect, ReadEnvEffect], forbids: [].}