Use
module Test (
Bar(..)
) where
to export all constructors from the associated data family Bar
. Or
module Test (
Bar(UnitBar)
) where
to only export the single constructor.
You can read the relevant section in GHC's documentation for more details.