Verified Commit 510d8829 authored by Camil Staps's avatar Camil Staps
Browse files

Added using field to requests for clean-cloogle/cloogle.org#52

parent 04ca6f21
......@@ -22,6 +22,7 @@ from Text.JSON import generic JSONEncode, generic JSONDecode, :: JSONNode
, name :: Maybe String //* Entries that match this name
, className :: Maybe String //* Exactly this class
, typeName :: Maybe String //* Exactly this type
, using :: Maybe Bool //* Return everything that *uses* what is searched for
, modules :: Maybe [String] //* Modules to search in
, libraries :: Maybe [String] //* Libraries to search in
, include_builtins :: Maybe Bool //* Whether language builtins should be included
......
......@@ -51,10 +51,12 @@ where
instance zero Request
where
zero = { unify = Nothing
zero =
{ unify = Nothing
, name = Nothing
, className = Nothing
, typeName = Nothing
, using = Nothing
, modules = Nothing
, libraries = Nothing
, include_builtins = Nothing
......@@ -65,7 +67,8 @@ where
instance zero Response
where
zero = { return = 0
zero =
{ return = 0
, msg = "Success"
, data = []
, more_available = Nothing
......
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