Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cloogle.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cloogle
cloogle.org
Commits
51e8db48
Verified
Commit
51e8db48
authored
Jun 18, 2016
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
#40
parent
70c05db1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
CloogleServer.icl
CloogleServer.icl
+3
-0
README.md
README.md
+1
-0
No files found.
CloogleServer.icl
View file @
51e8db48
...
...
@@ -104,6 +104,7 @@ err c m = { return = c
E_NORESULTS
:==
127
E_INVALIDINPUT
:==
128
E_NAMETOOLONG
:==
129
E_INVALIDTYPE
:==
130
MAX_RESULTS
:==
15
...
...
@@ -129,6 +130,8 @@ where
handle
db
(
Just
request
=:{
unify
,
name
,
modules
,
page
})
w
|
isJust
name
&&
size
(
fromJust
name
)
>
40
=
(
err
E_NAMETOOLONG
"function name too long"
,
w
)
|
isJust
unify
&&
isNothing
(
parseType
$
fromString
$
fromJust
unify
)
=
(
err
E_INVALIDTYPE
"couldn't parse type"
,
w
)
// Results
#
drop_n
=
fromJust
(
page
<|>
pure
0
)
*
MAX_RESULTS
#
results
=
drop
drop_n
$
sort
$
search
request
db
...
...
README.md
View file @
51e8db48
...
...
@@ -61,6 +61,7 @@ fields:
* `127`: no results
* `128`: ununderstandable input (usually shouldn't happen)
* `129`: function name too long
* `130`: couldn't parse type
* `150`: the Clean backend could not be reached
* `151`: invalid request type (should use GET)
* `152`: no input (GET variable `str` should be set to the search string)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment