Emulated enums got a private constructor.
Tiny modif on IO.