Skip to content

Viewing a record type in ucm does not provide information about argument names #1698

@samgqroberts

Description

@samgqroberts

Let's say I have a record type that I've added to ucm based on this definition:

type Rectangle = { width: Nat, height: Nat }

Thereafter if I try using find and view I cannot retrieve information about the argument names that the record type was created with (here, width and height).

.> find Rectangle
1. type Rectangle
2. Rectangle.Rectangle : Nat -> Nat -> Rectangle
3. Rectangle.height : Rectangle -> Nat
4. Rectangle.height.modify : (Nat ->{𝕖 } Nat) -> Rectangle ->{} Rectangle
5. Rectangle.height.set : Nat -> Rectangle -> Rectangle
6. Rectangle.width : Rectangle -> Nat
7. Rectangle.width.modify : (Nat ->{𝕖 } Nat) -> Rectangle ->{} Rectangle
8. Rectangle.width.set : Nat -> Rectangle -> Rectangle
.> view 1
type Rectangle = Rectangle Nat Nat
.> view 2
type Rectangle = Rectangle Nat Nat

I believe the desired solution here may be to update the outputs of view 1 (and perhaps view 2) in this example to provide information about the argument names, specifically to annotate the first type constructor argument with width and the second with height.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxDeveloper experience improvements or workflow fixespretty-printer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions