Skip to content

ddlog happily string-izes function references to unhelpful closure description #1063

Open
@blp

Description

@blp

The following program:

function f(): string { "mystring" }
output relation X(x: string)
X("${f}").

yields this output:

X:
X{.x = "<closure: f, captured_args: ()>"}: +1

Of course, what I meant was:

function f(): string { "mystring" }
output relation X(x: string)
X("${f()}").

which outputs as expected:

X:
X{.x = "mystring"}: +1

I think that the compiler should be less willing to convert function references to strings this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HaskellRequires knowledge of HaskellbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions