concept new type in category haskell

This is an excerpt from Manning's book Get Programming with Haskell.
Next you’ll add the patient’s sex, which can be either male or female. You could use a string for this, using the literal words male and female, or an Int or a Bool. In many other programming languages, this is likely the route you’d take. But none of these types seems like an ideal fit, and it’s easy to imagine bugs that might arise from using these solutions. In Haskell, you should use the powerful type system to help you as much as you can. To do this, it’s better to create a new type. Creating a new type can be done with the data keyword, as shown in figure 12.1.
In this new type, you define a few key pieces. The data keyword tells Haskell that you’re defining a new type. The word Sex is the type constructor. In this case, the type constructor is the name of the type, but in later lessons you’ll see that type constructors can take arguments. Male and Female are both data constructors. A data constructor is used to create a concrete instance of the type. By separating the data constructors with |, you’re saying, “The Sex type can be either Male or an instance of Female.”