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
4935dd91
Commit
4935dd91
authored
Dec 06, 2017
by
Mart Lubbers
Committed by
Camil Staps
Dec 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add newtype to the builtins database
parent
c4a75ba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
backend/Builtins.icl
backend/Builtins.icl
+11
-0
No files found.
backend/Builtins.icl
View file @
4935dd91
...
...
@@ -184,6 +184,7 @@ builtin_syntax =
,
bs_list_expressions
,
bs_macro
,
bs_module
,
bs_newtype
,
bs_otherwise
,
bs_pattern_named
,
bs_selection_array
...
...
@@ -463,6 +464,16 @@ bs_module = (["module", "definition", "implementation", "system", "definition mo
]
})
bs_pattern_named
=
([
"=:"
],
{
syntax_title
=
"newtype definition (experimental)"
,
syntax_code
=
[
":: ... =: T c"
]
,
syntax_description
=
"Define a newtype, a newtype is a type synonym that is treated as a real type."
,
syntax_doc_locations
=
[]
,
syntax_examples
=
[
EX
"Function"
":: T = T Int"
]
})
bs_otherwise
=
([
"otherwise"
],
{
syntax_title
=
"otherwise"
,
syntax_code
=
[
"otherwise"
]
...
...
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