Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Herman Bergwerf
stdpp
Commits
1534af50
Commit
1534af50
authored
2 years ago
by
Robbert Krebbers
Committed by
Ralf Jung
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Also use + for monad.
parent
3aaeed9c
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
stdpp/base.v
+5
-5
5 additions, 5 deletions
stdpp/base.v
with
5 additions
and
5 deletions
stdpp/base.v
+
5
−
5
View file @
1534af50
...
...
@@ -1144,27 +1144,27 @@ class with the monad laws). *)
Class
MRet
(
M
:
Type
→
Type
)
:=
mret
:
∀
{
A
},
A
→
M
A
.
Global
Arguments
mret
{_
_
_}
_
:
assert
.
Global
Instance
:
Params
(
@
mret
)
3
:=
{}
.
Global
Hint
Mode
MRet
!
:
typeclass_instances
.
Global
Hint
Mode
MRet
+
:
typeclass_instances
.
Class
MBind
(
M
:
Type
→
Type
)
:=
mbind
:
∀
{
A
B
},
(
A
→
M
B
)
→
M
A
→
M
B
.
Global
Arguments
mbind
{_
_
_
_}
_
!
_
/
:
assert
.
Global
Instance
:
Params
(
@
mbind
)
4
:=
{}
.
Global
Hint
Mode
MBind
!
:
typeclass_instances
.
Global
Hint
Mode
MBind
+
:
typeclass_instances
.
Class
MJoin
(
M
:
Type
→
Type
)
:=
mjoin
:
∀
{
A
},
M
(
M
A
)
→
M
A
.
Global
Arguments
mjoin
{_
_
_}
!
_
/
:
assert
.
Global
Instance
:
Params
(
@
mjoin
)
3
:=
{}
.
Global
Hint
Mode
MJoin
!
:
typeclass_instances
.
Global
Hint
Mode
MJoin
+
:
typeclass_instances
.
Class
FMap
(
M
:
Type
→
Type
)
:=
fmap
:
∀
{
A
B
},
(
A
→
B
)
→
M
A
→
M
B
.
Global
Arguments
fmap
{_
_
_
_}
_
!
_
/
:
assert
.
Global
Instance
:
Params
(
@
fmap
)
4
:=
{}
.
Global
Hint
Mode
FMap
!
:
typeclass_instances
.
Global
Hint
Mode
FMap
+
:
typeclass_instances
.
Class
OMap
(
M
:
Type
→
Type
)
:=
omap
:
∀
{
A
B
},
(
A
→
option
B
)
→
M
A
→
M
B
.
Global
Arguments
omap
{_
_
_
_}
_
!
_
/
:
assert
.
Global
Instance
:
Params
(
@
omap
)
4
:=
{}
.
Global
Hint
Mode
OMap
!
:
typeclass_instances
.
Global
Hint
Mode
OMap
+
:
typeclass_instances
.
Notation
"m ≫= f"
:=
(
mbind
f
m
)
(
at
level
60
,
right
associativity
)
:
stdpp_scope
.
Notation
"( m ≫=.)"
:=
(
λ
f
,
mbind
f
m
)
(
only
parsing
)
:
stdpp_scope
.
...
...
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