diff --git a/Project.toml b/Project.toml index 455976d..e37f192 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "RuntimeGeneratedFunctions" uuid = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47" authors = ["Chris Rackauckas and contributors"] -version = "0.4.0" +version = "0.4.1" [deps] ExprTools = "e2ba6199-217a-4e67-a87a-7c52f15ade04" diff --git a/src/RuntimeGeneratedFunctions.jl b/src/RuntimeGeneratedFunctions.jl index 3f642ad..ced0a6a 100644 --- a/src/RuntimeGeneratedFunctions.jl +++ b/src/RuntimeGeneratedFunctions.jl @@ -21,6 +21,15 @@ struct RuntimeGeneratedFunction{moduletag,id,argnames} end end +function Base.show(io::IO, ::Type{<:RuntimeGeneratedFunction{mod,id,arg}}) where {mod,id,arg} + print(io, "RuntimeGeneratedFunction{$arg}") +end + +# don't override typeof +function Base.show(io::IO, ::MIME"text/plain", ::Type{<:RuntimeGeneratedFunction{mod,id,arg}}) where {mod,id,arg} + print(io, "RuntimeGeneratedFunction{$mod, $id, $arg}") +end + """ @RuntimeGeneratedFunction(function_expression)