diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2016-11-10 16:11:29 +0100 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2016-11-10 16:39:42 +0100 |
commit | 246cc8b8ef6ae0d486fc82c3b28502c21af738bf (patch) | |
tree | b83cbb02db3298b5fd7492edc405664ec81370b2 /ddl/Definitions.hs | |
parent | f4af737a0d4a1fd3b3c6babc2c119129df34f77d (diff) |
update type info to include warnings
Diffstat (limited to 'ddl/Definitions.hs')
-rw-r--r-- | ddl/Definitions.hs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ddl/Definitions.hs b/ddl/Definitions.hs index 9e08cc9..847078c 100644 --- a/ddl/Definitions.hs +++ b/ddl/Definitions.hs | |||
@@ -474,9 +474,21 @@ typeInfo = do | |||
474 | , "text" #:: String | 474 | , "text" #:: String |
475 | ] | 475 | ] |
476 | 476 | ||
477 | data_ "WarningInfo" $ do | ||
478 | constR_ "WarningInfo" | ||
479 | [ "wRange" #:: "Range" | ||
480 | , "wText" #:: String | ||
481 | ] | ||
482 | |||
483 | data_ "ErrorInfo" $ do | ||
484 | constR_ "ErrorInfo" | ||
485 | [ "eRange" #:: "Range" | ||
486 | , "eText" #:: String | ||
487 | ] | ||
488 | |||
477 | data_ "CompileResult" $ do | 489 | data_ "CompileResult" $ do |
478 | const_ "CompileError" [Array "Range", String, Array "TypeInfo"] | 490 | const_ "CompileError" [Array "TypeInfo", Array "WarningInfo", Array "ErrorInfo"] |
479 | const_ "Compiled" [String, String, "Pipeline", Array "TypeInfo"] | 491 | const_ "Compiled" [String, String, "Pipeline", Array "TypeInfo", Array "WarningInfo"] |
480 | 492 | ||
481 | pipelineSchema = do | 493 | pipelineSchema = do |
482 | data_ "StreamType" $ do | 494 | data_ "StreamType" $ do |