gleam-lang/gleam

Qualify or import generated variants

Fermée

#5 735 ouverte le 19 mai 2026

 (2 commentaires) (0 réaction) (0 personne assignée)Rust (960 forks)batch import
help wanted

Métriques du dépôt

Stars
 (21 417 étoiles)
Métriques de merge PR
 (Merge moyen 10j 19h) (69 PRs mergées en 30 j)

Description

When you use the generate variant LS action for a type that lives in another module:

Event(..) -> [PlaceIn(SmokedPile)]
// Use generate variant here ^

If PlaceIn is in another module, the variant is generated correctly but it's not imported by the currrent module, so you need to manually import it.

Guide contributeur