mirror of
https://github.com/github/semantic.git
synced 2025-01-02 20:41:38 +03:00
Only show the populated branches.
This commit is contained in:
parent
ea01aa9e2b
commit
238d0fdb4a
@ -10,4 +10,4 @@ data Table i a = Table { tableAddresses :: [i], tableBranches :: Array i (Maybe
|
|||||||
|
|
||||||
|
|
||||||
instance (Ix i, Show i) => Show1 (Table i) where
|
instance (Ix i, Show i) => Show1 (Table i) where
|
||||||
liftShowsPrec spA slA d Table{..} = showsBinaryWith showsPrec (const (liftShowList spA slA)) "Table" d tableAddresses (assocs tableBranches >>= \ (sym, a) -> (,) sym <$> toList a)
|
liftShowsPrec spA slA d Table{..} = showsBinaryWith showsPrec (const (liftShowList spA slA)) "Table" d tableAddresses (tableAddresses >>= \ addr -> (,) addr <$> toList (tableBranches ! addr))
|
||||||
|
Loading…
Reference in New Issue
Block a user