When importing some data type, it is necessary to put (..) for constructors to be imported.
Is it possible to prevent exporting constructors of some data type, even when that data type is exported?
Yes, just use the same syntax when exporting them - Foo()
just to export the type, Foo(..)
to export the type and all constructors, and Foo(FooC1,FooC2)
to just export the named constructors of the type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With