I would like to write a function which takes an optional argument, which may be of type FooType or of type BarType.
optional
FooType
BarType
I have a module