Skip to content

Commit a9d4fec

Browse files
committed
added export for EPatt
1 parent cc4d07f commit a9d4fec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/api/GF/Grammar/JSON.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ term2json (Reset ctl t) =
139139
in makeObj [("reset",jctl), ("term",term2json t)]
140140
term2json (Alts def alts) = makeObj [("def",term2json def), ("alts",showJSON (map (\(t1,t2) -> (term2json t1, term2json t2)) alts))]
141141
term2json (Strs ts) = makeObj [("strs",showJSON (map term2json ts))]
142+
term2json (EPatt _ _ p) = makeObj [("epatt",patt2json p)]
143+
142144

143145
json2term o = Vr <$> o!:"vr"
144146
<|> curry Q <$> o!:"mod" <*> o!:"cn"

0 commit comments

Comments
 (0)