gleam-lang / suggestions

📙 A place for ideas and feedback
26 stars 2 forks source link

Import all custom type variants from a module #112

Open sporto opened 3 years ago

sporto commented 3 years ago

Unsure if this is possible, seems not.

If I import a variant from a module, most likely I want to import all variants for that custom type. e.g.

module a:

pub type Ins{ Add, Substract, Jump, Store, Halt, ... }

module b:

import a.{Ins, Add, Substract, Jump, ...}

I would like to import all of them:

import a.{Ins(...)}

Thanks