Examples TYPE (user types) usage examples. Example 1: Defining a type with a record structure Example 2: Defining a type an using it in another module Example 3: Defining a type with a function type