gleam-lang/gleam

Qualify or import generated variants

Chiusa

#5735 aperta il 19 mag 2026

 (2 commenti) (0 reazioni) (0 assegnatari)Rust (960 fork)batch import
help wanted

Metriche repository

Star
 (21.417 stelle)
Metriche merge PR
 (Merge medio 10g 19h) (69 PR mergiate in 30 g)

Descrizione

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.

Guida contributor