Add stateful pretty printer for references in REPL
Open
- Dominant language
- Standard ML
- Stars
- 1.2k
- Forks
- 104
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 16
Description
When using the repl References are printed as ``
```
> val a = Ref 0;
val a = : int ref
```
Current implementation is here https://github.com/CakeML/cakeml/blob/5204d423c1b89d92a970f41f52da476d6cfb1e47/basis/pure/mlprettyprinterScript.sml#L217-L219
This should be what's printed instead
```
> val a = Ref 0;
val a = Ref 0: int ref
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at basis/pure/mlprettyprinterScript.sml lines 217-219 and reproduce the REPL example from the issue. Trace how the reference value is printed, then verify that the REPL output shows Ref 0 while retaining the int ref type annotation.】【。
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100