forked from GitHub/gf-core
Handle concatenations with variants in PGF.ShowLinearize, fixes http://trac.haskell.org/gf/ticket/23
This commit is contained in:
@@ -48,7 +48,9 @@ mkRecord typ trm = case (typ,trm) of
|
|||||||
(S [FV ps,ty],R ts) -> RT [(str par, mkRecord ty t) | (par, t) <- zip ps ts]
|
(S [FV ps,ty],R ts) -> RT [(str par, mkRecord ty t) | (par, t) <- zip ps ts]
|
||||||
(_,W s (R ts)) -> mkRecord typ (R [K (KS (s ++ u)) | K (KS u) <- ts])
|
(_,W s (R ts)) -> mkRecord typ (R [K (KS (s ++ u)) | K (KS u) <- ts])
|
||||||
(FV ps, C i) -> RCon $ str $ ps !! i
|
(FV ps, C i) -> RCon $ str $ ps !! i
|
||||||
(S [], _) -> RS $ str trm
|
(S [], _) -> case realizes trm of
|
||||||
|
[s] -> RS s
|
||||||
|
ss -> RFV $ map RS ss
|
||||||
_ -> RS $ show trm ---- printTree trm
|
_ -> RS $ show trm ---- printTree trm
|
||||||
where
|
where
|
||||||
str = realize
|
str = realize
|
||||||
|
|||||||
Reference in New Issue
Block a user