Skip to content

Explain opaque types #543

Closed
Closed

Description

@davesnx

Hi,

I often trend to link this section (https://reasonml.github.io/docs/en/type#opaque-types) from ReasonML to explain opaque types, but isn't ReScript and is more confusing that clarifying (mentioning type modules).

An explanation of the possibility to create a type alias without a specific type and keep it hidden should be more than enough.

Activity

  1. self-assigned this
    on Apr 10, 2026
  2. fhammerschmidt commented on Nov 3, 2026

    @fhammerschmidt
    Member

    Closing as covered by the Module Signatures documentation.

    The explanation of EstablishmentType.profession describes an abstract type with no exposed concrete representation, and shows how a module signature hides the implementation type from callers. This covers the opaque-type behavior requested here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationChanges required for markdown documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions