You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our current solution is to load Intervals.jl and TimeZones.jl into the Main module for printing to work nicely.
```@meta
DocTestSetup = quote
using Intervals, TimeZones, Dates
# This is a hack to have nice printing that doesn't include module names.
@eval Main begin
using Intervals, TimeZones
end
end
It'd be nice if doctests did this automatically, but maybe this is more of an issue with how base julia special cases the Main module?
The text was updated successfully, but these errors were encountered:
Yea, I think this should be solved from Julia's side, e.g. JuliaLang/julia#29466. Would it not work to using in make.jl instead of that hack? That should also load them in Main.
The following output in the REPL:
Shows up as:
Our current solution is to load Intervals.jl and TimeZones.jl into the
Main
module for printing to work nicely.It'd be nice if doctests did this automatically, but maybe this is more of an issue with how base julia special cases the
Main
module?The text was updated successfully, but these errors were encountered: