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
105d0107
Unverified
Commit
105d0107
authored
Jul 13, 2018
by
Mart Lubbers
Committed by
GitHub
Jul 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add generic dependency to syntax.icl
parent
70590aa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
backend/Builtin/Syntax.icl
backend/Builtin/Syntax.icl
+3
-0
No files found.
backend/Builtin/Syntax.icl
View file @
105d0107
...
...
@@ -143,6 +143,8 @@ bs_context =
,
"In constructors, the type context starts with `&`.
\n
"
,
"Uniqueness constraints can be given with `,`. For details, see under {{`,`}}.
\n
"
,
"With the `special` keyword, specialised instances for certain type instantiations are exported for efficiency."
,
"A generic function can only contain a generic context written with a different syntax."
,
"The generic dependency is written without the kind specification and separated by `,` as seen in the example."
]
,
syntax_doc_locations
=
[
CLR
8
"6.2"
"_Toc311798057"
]
,
syntax_examples
=
map
EX
...
...
@@ -150,6 +152,7 @@ bs_context =
,
"sum :: [a] -> a | zero, + a // a must instantiate zero and +
\n
sum [] = zero
\n
sum [x:xs] = x + sum xs"
,
"(<+) infixr 5 :: a b -> String | toString a & toString b // a and b must instantiate toString
\n
(<+) x y = toString x +++ toString y"
,
"isMember :: a [a] -> Bool special a=Int // specialised instance for integer lists for efficiency"
,
"generic gFun a | gDefault a, gEq a"
// Generic dependency
]
}
...
...
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