Discussing the addition of an export mechanism that will do what you want, but it is not clear whether this will happen.
In any case, the only way so far is
- Define the type of each class
- Set val value equal to each object
So for example
package bar case class Foo(i: Int) {}
will need to mimic another package using
package object baz { type Foo = bar.Foo val Foo = bar.Foo }
When faced with this, people usually simply agree to an additional import or two.
source share