Well, I am not the one who wrote the original module, so ideally I want to just use the submodule, which doesn’t have export in it. I could copy and paste the file and modify it in my program, but I don’t want to take credit for that code.
Looks like there is an export in the original code (alternatively you could “fork” the repository and still retain original credits).
Try something like:
import WriteVTK: VTKCellTypes
or if you want all exported function/types than use:
Edited to Add: Actually, you should just be able to say using WriteVTK and everything that is exported should be available (which includes VTKCellTypes and VTKCellType).
ETA2: Just tried this on my machine and it doesn’t work. WriteVTK has an export VTKCellType statement but that type is never defined in that module. It honestly seems like that the behavior that you’re looking for is the expected behavior… maybe open a Pull Request or Issue on github?