unison icon indicating copy to clipboard operation
unison copied to clipboard

Docs no longer render record types with named fields

Open rlmark opened this issue 10 months ago • 1 comments

Including a record type in the @source{} element used to render the record type with its named fields. There may have been a regression such that the docs or display command no longer render the record type as a record.

I've also attached this as a transcript.

recordTypeIssue.md

scratch/main> builtins.mergeio
type Blah = {
  foo: Nat,
  bar: Text
}

testRecord = {{
This is a doc with a record type

@source{type Blah}
}}

View works great!

scratch/main> add
scratch/main> view Blah

The docs or display command is where it does not render:

scratch/main> display testRecord

Environment (please complete the following information):

  • unison version: release/0.5.29 (built on 2024-12-02)
  • OS/Architecture: macOS 14.5, M1

Additional context

rlmark avatar Dec 17 '24 22:12 rlmark