Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
haskell-wasm
GHC
Commits
535a2117
Commit
535a2117
authored
11 months ago
by
Daniel Díaz
Committed by
Marge Bot
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Clarify the meaning of "exactly once" in LinearTypes
Solves documentaion issue
#25084
.
parent
135fd1ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/users_guide/exts/linear_types.rst
+3
-2
3 additions, 2 deletions
docs/users_guide/exts/linear_types.rst
with
3 additions
and
2 deletions
docs/users_guide/exts/linear_types.rst
+
3
−
2
View file @
535a2117
...
@@ -28,8 +28,9 @@ once*, then its argument is consumed *exactly once*. Intuitively, it
...
@@ -28,8 +28,9 @@ once*, then its argument is consumed *exactly once*. Intuitively, it
means that in every branch of the definition of ``f``, its argument
means that in every branch of the definition of ``f``, its argument
``x`` must be used exactly once. Which can be done by
``x`` must be used exactly once. Which can be done by
* Returning ``x`` unmodified
* Returning ``x`` unmodified.
* Passing ``x`` to a *linear* function
* Passing ``x`` to a *linear* function and using the result exactly once
in the same fashion.
* Pattern-matching on ``x`` and using each argument exactly once in the
* Pattern-matching on ``x`` and using each argument exactly once in the
same fashion.
same fashion.
* Calling it as a function and using the result exactly once in the same
* Calling it as a function and using the result exactly once in the same
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment