@@ -197,20 +197,7 @@ function supremum(V₁::GradedSpace{I}, V₂::GradedSpace{I}) where {I <: Sector
197197 )
198198end
199199
200- function Base. showarg (io:: IO , V:: GradedSpace , toplevel:: Bool )
201- isdual (V) && print (io, " dual(" )
202- (! toplevel || isdual (V)) && print (io, " ::" )
203- print (io, type_repr (typeof (V)))
204- isdual (V) && print (io, " )" )
205- return nothing
206- end
207-
208- function Base. summary (io:: IO , V:: GradedSpace )
209- d = reduceddim (V)
210- print (io, d, " -element " )
211- Base. showarg (io, V, true )
212- return nothing
213- end
200+ Base. summary (io:: IO , V:: GradedSpace ) = print (io, type_repr (typeof (V)))
214201
215202function Base. show (io:: IO , V:: GradedSpace )
216203 pre = (get (io, :typeinfo , Any):: DataType == typeof (V) ? " " : type_repr (typeof (V)))
@@ -264,16 +251,24 @@ function Base.show(io::IO, V::GradedSpace)
264251end
265252
266253function Base. show (io:: IO , :: MIME"text/plain" , V:: GradedSpace )
267- summary (io, V)
268- iszero (dim (V)) && return nothing
269- println (io, " :" )
270- print (io, " " )
254+ # print small summary, e.g.
255+ # d-element Vect[I] or d-element dual(Vect[I])
256+ d = reduceddim (V)
257+ print (io, d, " -element " )
258+ isdual (V) && print (io, " dual(" )
259+ print (io, type_repr (typeof (V)))
260+ isdual (V) && print (io, " )" )
261+
262+ compact = get (io, :compact , false ):: Bool
263+ (iszero (d) || compact) && return nothing
264+
265+ # print detailed sector information
266+ print (io, " :\n " )
271267 ioc = IOContext (io, :typeinfo => typeof (V))
272268 show (ioc, V)
273269 return nothing
274270end
275271
276-
277272struct SpaceTable end
278273"""
279274 const Vect
0 commit comments