diff --git a/src/show.jl b/src/show.jl index 31bc5cd92..5fa7c1c73 100644 --- a/src/show.jl +++ b/src/show.jl @@ -7,7 +7,7 @@ # this function to provide a name that is easier to read, # especially when the type is parametric. # -distrname(d::Distribution) = string(typeof(d)) +@generated distrname(d::Distribution) = string(d) show(io::IO, d::Distribution) = show(io, d, fieldnames(typeof(d)))