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
V
visitors
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
visitors
Commits
df02cf34
Commit
df02cf34
authored
Apr 03, 2017
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note that, in a family of types, the keyword [and] must be used.
parent
8c23f6d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
doc/main.tex
doc/main.tex
+5
-0
No files found.
doc/main.tex
View file @
df02cf34
...
...
@@ -710,6 +710,11 @@ these classes has visitor methods for every type (namely \tyconvisitor{unop},
\tyconvisitor
{
binop
}
,
\tyconvisitor
{
expr
}
) and for every data constructor
(namely
\dataconvisitor
{
UnaryMinus
}
,
\dataconvisitor
{
BinaryMinus
}
, and so on).
Note that, for the
\derivingvisitors
annotation to apply to the entire family,
as opposed to just the type
\oc
|expr|, the types
\oc
|unop|,
\oc
|binop|, and
\oc
|expr| in
\fref
{
fig:expr06
}
are declared simultaneously: that is, their
declarations are separated with the keyword
\oc
|and|.
% ------------------------------------------------------------------------------
\subsection
{
Visitors for parameterized types
}
...
...
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