diff --git a/src/Renderer/JSON.hs b/src/Renderer/JSON.hs index 2c6d726da..5ba639749 100644 --- a/src/Renderer/JSON.hs +++ b/src/Renderer/JSON.hs @@ -90,6 +90,7 @@ termFields info syntax = "range" .= characterRange info : "category" .= category S.Comment _ -> [] S.Commented comments child -> childrenFields (comments <> maybeToList child) S.Error sourceSpan c -> [ "sourceSpan" .= sourceSpan ] <> childrenFields c + S.Throw c -> [ "throwExpression" .= c ] where childrenFields c = [ "children" .= c ] patchFields :: (KeyValue kv, HasField fields Category, HasField fields Range) => SplitPatch (Term leaf (Record fields)) -> [kv]