Skip to content

Commit

Permalink
correct Inspect.opaque and Inspect.function to be function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansconnect committed Nov 28, 2023
1 parent fbfb288 commit b6956f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/compiler/builtins/roc/Inspect.roc
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ InspectFormatter implements

# In text, this would render as `<opaque>`
# TODO: Pass the type name to opaque so that it can be displayed.
opaque : Inspector f where f implements InspectFormatter
opaque : * -> Inspector f where f implements InspectFormatter

# In text, this would render as `<function>`
# TODO: Maybe pass the the function name or signiture to function so that it can be displayed.
function : Inspector f where f implements InspectFormatter
function : * -> Inspector f where f implements InspectFormatter

u8 : U8 -> Inspector f where f implements InspectFormatter
i8 : I8 -> Inspector f where f implements InspectFormatter
Expand Down Expand Up @@ -262,13 +262,13 @@ dbgStr = \s ->
|> dbgWrite s
|> dbgWrite "\""

dbgOpaque : Inspector DbgFormatter
dbgOpaque =
dbgOpaque : * -> Inspector DbgFormatter
dbgOpaque = \_ ->
f0 <- custom
dbgWrite f0 "<opaque>"

dbgFunction : Inspector DbgFormatter
dbgFunction =
dbgFunction : * -> Inspector DbgFormatter
dbgFunction = \_ ->
f0 <- custom
dbgWrite f0 "<function>"

Expand Down

0 comments on commit b6956f7

Please sign in to comment.