Skip to content

Commit b480ead

Browse files
committed
pretty printing for VPatt
1 parent 72028c7 commit b480ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/api/GF/Compile/Compute/Concrete2.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ ppValue q d (VStr s) = ppTerm q d (K s)
10621062
ppValue q d VEmpty = pp "[]"
10631063
ppValue q d (VC v1 v2) = prec d 1 (hang (ppValue q 2 v1) 2 ("++" <+> ppValue q 1 v2))
10641064
ppValue q d (VGlue v1 v2) = prec d 2 (ppValue q 3 v1 <+> '+' <+> ppValue q 2 v2)
1065-
ppValue q d (VPatt _ _ _) = pp "VPatt"
1065+
ppValue q d (VPatt _ _ p) = prec d 4 ('#' <+> ppPatt q 2 p)
10661066
ppValue q d (VPattType v) = prec d 4 ("pattern" <+> ppValue q 0 v)
10671067
ppValue q d (VFV i vs) = prec d 4 ("variants" <+> pp i <+> braces (fsep (punctuate ';' (map (ppValue q 0) (unvariants vs)))))
10681068
ppValue q d (VAlts e xs) = prec d 4 ("pre" <+> braces (ppValue q 0 e <> ';' <+> fsep (punctuate ';' (map (ppAltern q) xs))))

0 commit comments

Comments
 (0)