Type imports

Other modules may also define types that we wish to refer to. In this case we need to import them.

Like functions, types can be referred to in a qualified way by putting the imported module name and a dot before the type name. For example, bytes_builder.BytesBuilder

Types can also be imported in an unqualified way by listing them in the import statement with the word type before the type name.

It is more common in Gleam code for types to be imported in an unqualified way than it is for functions to be imported in an unqualified way.