fix: tag nested data names
This commit is contained in:
@@ -70,7 +70,7 @@ tagData p = let ?dt = p ^. programDataTags
|
|||||||
go x = embed x
|
go x = embed x
|
||||||
|
|
||||||
tagAlts :: (?dt :: HashMap Name (Tag, Int)) => Alter' -> Alter'
|
tagAlts :: (?dt :: HashMap Name (Tag, Int)) => Alter' -> Alter'
|
||||||
tagAlts (Alter (AltData c) bs e) = Alter (AltTag tag) bs e
|
tagAlts (Alter (AltData c) bs e) = Alter (AltTag tag) bs (cata go e)
|
||||||
where tag = case ?dt ^. at c of
|
where tag = case ?dt ^. at c of
|
||||||
Just (t,_) -> t
|
Just (t,_) -> t
|
||||||
-- TODO: errorful
|
-- TODO: errorful
|
||||||
|
|||||||
Reference in New Issue
Block a user