Commit aab46cfb authored by Camil Staps's avatar Camil Staps 🍃

Add SyntaxResult for clean-cloogle/cloogle.org#130

parent 9774125c
This diff is collapsed.
......@@ -19,10 +19,12 @@ import GenEq
derive JSONEncode Request, Response, Result, ShortClassResult, BasicResult,
FunctionResultExtras, TypeResultExtras, ClassResultExtras, FunctionKind,
MacroResultExtras, ModuleResultExtras, StrUnifier
ModuleResultExtras, SyntaxResultExtras, SyntaxExample, SyntaxDocLocation,
CleanLangReportLocation, StrUnifier
derive JSONDecode Request, Response, Result, ShortClassResult, BasicResult,
FunctionResultExtras, TypeResultExtras, ClassResultExtras, FunctionKind,
MacroResultExtras, ModuleResultExtras, StrUnifier
ModuleResultExtras, SyntaxResultExtras, SyntaxExample, SyntaxDocLocation,
CleanLangReportLocation, StrUnifier
derive gEq FunctionKind
instance toInt CloogleError
......@@ -84,6 +86,7 @@ where
basic (TypeResult (br,_)) = br
basic (ClassResult (br,_)) = br
basic (ModuleResult (br,_)) = br
basic (SyntaxResult (br,_)) = br
instance == FunctionKind where == a b = a === b
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment