Skip to content

Commit

Permalink
WIP: Does rebind fix tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
drewc committed Aug 22, 2024
1 parent 0f3a317 commit a198b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/std/monad/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ definition.
(instance (m Monad) :t
((return a) a)
((>>= ma f) (f ma))
((>> ma mb) (m.>>= ma (lambda (_) mb)))))
((>> ma mb) (m.>>= ma (lambda (_) mb))))
rebind: #t)
#+end_src

Essentially that's that! a monad is just an abstraction around those
Expand Down
3 changes: 2 additions & 1 deletion src/std/monad/interface.ss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
(instance (m Monad) :t
((return a) a)
((>>= ma f) (f ma))
((>> ma mb) (m.>>= ma (lambda (_) mb)))))
((>> ma mb) (m.>>= ma (lambda (_) mb))))
rebind: #t)

(interface Run (run . args))

Expand Down

0 comments on commit a198b5d

Please sign in to comment.