File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ instance (ShallowSplitPorts' r p) => ShallowSplitPorts' (Meta (MetaField name id
6969 shallowUnsplitPorts' = Meta ∘ shallowUnsplitPorts'
7070 shallowSplitPortNames' _ base = shallowSplitPortNames' (_ :: r ) $
7171 -- Avoid an extra underscore, since data fields names are _[0-9]+
72- if stringOf name == " " || stringHead (stringOf name) == ' _'
72+ if base == " " || stringOf name == " " || stringHead (stringOf name) == ' _'
7373 then base +++ stringOf name
7474 else base +++ " _" +++ stringOf name
7575
@@ -180,7 +180,7 @@ instance (DeepSplitPorts'' r p) => DeepSplitPorts'' (Meta (MetaField name idx) r
180180 deepUnsplitPorts'' = Meta ∘ deepUnsplitPorts''
181181 deepSplitPortNames'' _ base = deepSplitPortNames'' (_ :: r ) $
182182 -- Avoid an extra underscore, since data fields names are _[0-9]+
183- if stringOf name == " " || stringHead (stringOf name) == ' _'
183+ if base == " " || stringOf name == " " || stringHead (stringOf name) == ' _'
184184 then base +++ stringOf name
185185 else base +++ " _" +++ stringOf name
186186
You can’t perform that action at this time.
0 commit comments