Skip to content

Deriving abstract types #118

Closed
Closed
@clecat

Description

@clecat

Hello everyone,

I have recently started doing my first ppx and I encountered a problem:
My goal was to generate functions for a record which I would keep as an abstract type in the signature of my module.
The structure part was working fine but when doing the signature part, I met one problem:
My type being an abstract one, I could not access my record fields anymore, therefore I could not generate the functions signatures.

This is why I was wondering if there was a solution to allow me to have my record information available for the ppx but remove them with the abstraction of my type right after.

What do you think of it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions