Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Gaëtan Gilbert
Iris
Commits
b43f13c9
Verified
Commit
b43f13c9
authored
3 years ago
by
Ralf Jung
Committed by
Paolo G. Giarrusso
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Doc changes from Ralf
parent
b73e5cb5
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/resource_algebras.md
+4
-4
4 additions, 4 deletions
docs/resource_algebras.md
with
4 additions
and
4 deletions
docs/resource_algebras.md
+
4
−
4
View file @
b43f13c9
...
...
@@ -20,13 +20,13 @@ Local Existing Instance one_shot_inG.
Here, the projection
`one_shot_inG`
is registered as an instance for type-class
resolution. If you need several resource algebras, just add more
`inG`
fields.
If you are using another module as part of yours, add a field like
`one_shot_other : otherG Σ`
.
`one_shot_other : otherG Σ`
.
All of these fields should be added to the
`Local Existing Instances`
.
The code above enables these typeclass instances only in the surrounding file
:
where they are used to define the new abstraction by the library
, while t
he
The code above enables these typeclass instances only in the surrounding file
where they are used to define the new abstraction
s
by the library
. T
he
interface of these abstractions will only depend on the
`one_shotG`
class.
Since
`one_shot_inG`
will be hidden from clients, they will not accidentally
re
use it accidentally
in their code.
re
ly on it
in their code.
Having defined the type class, we need to provide a way to instantiate it. This
is an important step, as not every resource algebra can actually be used: if
...
...
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