The following simple snippet seems to work:
module Foo
foo(x) = x+1
bar(x) = x-1
# exportall:
for n in names(current_module(), true)
if Base.isidentifier(n) && n ∉ (Symbol(current_module()), :eval)
@eval export $n
end
end
end