CakeML / CakeML/cakeml

Use monad API instead of overloads

Open
#1,411 1 comment 0 reactions 0 assignees View on GitHub
low effort refactoring
Dominant language
Standard ML
Stars
1.2k
Forks
104
Avg merge
2d 21h
Merged PRs (30d)
16

Description

I noticed that at some places there are snippets such as this:
```
Overload monad_bind[local] = ``st_ex_bind``
Overload monad_unitbind[local] = ``\x y. st_ex_bind x (\z. y)``
Overload monad_ignore_bind[local] = ``\x y. st_ex_bind x (\z. y)``
Overload return[local] = ``st_ex_return``
```
The example here is from `candle/standard/monadic/holKernelScript.sml`.

It would be cleaner if instead the state-exception monad would be declared and (temporarily) enabled as a monad through HOL's `monadsyntax` API.

Ideally this should be transformed everywhere, meaning that no more overloads to `monad_bind` friends remain.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.